1
我正在使用RallyRestToolkitFor.NET編寫應用程序。我能夠爲特定工作區的所有用戶素材提取列出的字段。現在我想根據特定的「史詩」來獲取故事。我無法找到在文檔鏈接中執行此操作的方式。如何在Rally .NET Web服務API中的Epic下獲取所有缺陷
我想知道是否有可能嘗試去做。如果答案是肯定的,請告訴我方式。鏈接或示例代碼或指針,我感謝任何幫助。
謝謝,薩加爾。
我正在使用RallyRestToolkitFor.NET編寫應用程序。我能夠爲特定工作區的所有用戶素材提取列出的字段。現在我想根據特定的「史詩」來獲取故事。我無法找到在文檔鏈接中執行此操作的方式。如何在Rally .NET Web服務API中的Epic下獲取所有缺陷
我想知道是否有可能嘗試去做。如果答案是肯定的,請告訴我方式。鏈接或示例代碼或指針,我感謝任何幫助。
謝謝,薩加爾。
這裏是獲取一個特定的史詩故事代碼:
namespace FindChildren
{
class Program
{
static void Main(string[] args)
{
RallyRestApi restApi;
restApi = new RallyRestApi("[email protected]", "secret", "https://rally1.rallydev.com", "v2.0");
String projectRef = "/project/12352814790"; //replace this OID with an OID of your project
Request sRequest = new Request("HierarchicalRequirement");
sRequest.Project = projectRef;
sRequest.Fetch = new List<string>() { "FormattedID", "Name", "Children" };
sRequest.Query = new Query("FormattedID", Query.Operator.Equals, "US384");
QueryResult queryResults = restApi.Query(sRequest);
foreach (var s in queryResults.Results)
{
Console.WriteLine("FormattedID: " + s["FormattedID"] + " Name: " + s["Name"]);
Console.WriteLine("Collection ref: " + s["Children"]._ref);
Request childrenRequest = new Request(s["Children"]);
QueryResult queryChildrenResult = restApi.Query(childrenRequest);
foreach (var c in queryChildrenResult.Results)
{
Console.WriteLine("FormattedID: " + c["FormattedID"] + " Name: " + c["Name"]);
}
}
}
}
}
這是如何工作的,如果RallyRestAPI不包含一個構造函數4個參數...公共RallyRestApi(ApiAuthManager authManger = NULL,字符串webServiceVersion = DEFAULT_WSAPI_VERSION) \t \t ??? –