我能够从其任务中获取用户故事的实际值、估计值和值。但是当用户故事的任务不存在时,我必须从集会的用户故事详细信息页面中获取值。
例如:(我需要从 rallyrestapi c# toolkit 获取如下所示) https://rally1.rallydev.com/#/262768386856d/detail/defect/161729744764
目前我尝试如下,但没有成功
// 查询用户故事
[![Request storyRequest = new Rally.RestApi.Request("hierarchicalrequirement");
storyRequest.Workspace = workspaceRef;
// storyRequest.Project = projectRef;
storyRequest.ProjectScopeUp = projectScopingUp;
storyRequest.ProjectScopeDown = projectScopingDown;
storyRequest.Fetch = new List<string>()
{
"Name",
"ObjectID",
"ScheduleState",
"State",
"FormattedID",
"CreationDate",
"ReleaseDate",
"PlanEstimate",
"Iteration",
"StartDate",
"EndDate",
"Release",
"ScheduleState",
"Tasks",
};
string userstoryId = "";
long userstoryObjId ;
storyRequest.Query = new Query("Iteration.Name", Query.Operator.Equals, myIterationName);
QueryResult queryStoryResults = rallyRestApi.Query(storyRequest);
ConvertToJSon(queryStoryResults);
// Fetch Actual and Estimated Time request for task
foreach (var userstory in queryStoryResults.Results)
{
Rally.RestApi.Request tasksRequest = new Rally.RestApi.Request(userstory\["Tasks"\]);
QueryResult queryTaskResult = rallyRestApi.Query(tasksRequest);
}
Request details = new Rally.RestApi.Request("details");
details.Workspace = workspaceRef;
// storyRequest.Project = projectRef;
details.ProjectScopeUp = projectScopingUp;
details.ProjectScopeDown = projectScopingDown;
details.Fetch = new List<string>()
{
"Estimate",
"Actuals",
"ToDo"
};
storyRequest.Query = new Query("Defect.ObjectID", Query.Operator.Equals, "298510499032");
QueryResult detailsdata = rallyRestApi.Query(details);][1]][1]
它给出的未经授权的 401 错误。请指导我如何从集会详细信息页面获取上述字段。