如何使用 Rally Api 和 .NET 创建属于迭代的任务 [英] How to create a Task belonging to an Iteration using Rally Api and .NET

查看:30
本文介绍了如何使用 Rally Api 和 .NET 创建属于迭代的任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Rally API 的新手,只是在使用 Rally.RestApi 库创建任务时遇到了一些麻烦.我需要创建一个任务(使用 .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?

谢谢.

推荐答案

Rally 中的所有对象都有一个唯一的 url,称为 ref.您只需要故事的 ref 即可将两者关联起来:

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 Api 和 .NET 创建属于迭代的任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆