1

我是一个新手,在使用 Rally REST Toolkit for .NET 将发布分配给分层需求方面需要帮助。

我能够更新很多字段,但在更改 Release 字段时遇到问题。

我尝试了以下方法:

...
restApi = new RallyRestApi("xxx@yy.com", "password", "https://rally1.rallydev.com", "v2.0");
DynamicJsonObject toUpdate = new DynamicJsonObject();
toUpdate["Release._ref"] = "https://rally1.rallydev.com/slm/webservice/v2.0/release/23453434";
OperationResult updateResult = restApi.Update('hierarchicalrequirement', 1234323, toUpdate);

Also, tried 
toUpdate["Release.Name"] = "ABCDRelease";

对此的任何帮助将不胜感激。

问候坎特

4

1 回答 1

1

你超级接近。所有对象关联在 Web 服务 API 中的工作方式相同。只需设置其参考:

toUpdate["Release"] = "/release/23453434";

请注意 ref 可以是原始代码中的绝对值,也可以是相对值,如上所示。

于 2014-03-07T06:45:58.943 回答