English 中文(简体)
How to create a Task belonging to an Iteration using Rally Api and .NET
原标题:

I am new to the Rally API and just having some trouble creating a Task using the Rally.RestApi library. I need to create a Task (using .NET) and associate it with a User Story (in which the User Story belongs to a certain Iteration).

Do I have to get the User Story first, then add a Task to it? How would I do that?

Thanks.

最佳回答

All objects in Rally have a unique url called a ref. You just need the story s ref to associate the two:

RallyRestApi restApi = new RallyRestApi("myuser@company.com", "password",
    "https://rally1.rallydev.com", "1.27");
DynamicJsonObject newTask = new DynamicJsonObject();
newTask["Name"] = "My New Task";
newTask["WorkProduct"] = "/hierarchicalrequirement/12345"; //your story ref here
CreateResult createResult = restApi.Create("task", newTask);
问题回答

暂无回答




相关问题
Rally: How the Release filter in Rally is implemented?

We need to determine a top level story to be considered under a selected release if any of its child (or further child stories) are scheduled to be released in the selected release. Valuable replies ...

Using the Rally Rest API for CRUD operations

At my company, we recently started using Rally for our project management tool. Initially, someone external to our team invested a lot of time manually creating iterations using a naming convention ...

热门标签