Rally C#:如何将功能附加到用户故事?

时间:2017-02-08 22:01:05

标签: c# api rally

我在创建用户故事时尝试添加功能。这是我的示例代码如下。我想知道这是否有效。

DynamicJsonObject toCreate = new DynamicJsonObject();
toCreate[RallyConstant.Name] = usName;
toCreate[RallyConstant.WorkSpace] = usWorkspace;
toCreate[RallyConstant.Project] = usProject;
toCreate[RallyConstant.Iteration] = usIteration;
toCreate["Feature"] = "testFeature";

CreateResult cr = _api.Create("HierarchicalRequirement", toCreate);

1 个答案:

答案 0 :(得分:0)

Feature属性是readonly。您应该使用PortfolioItem:

toCreate["PortfolioItem"] = "/portfolioitem/feature/12345";