我在创建用户故事时尝试添加功能。这是我的示例代码如下。我想知道这是否有效。
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);
答案 0 :(得分:0)
Feature属性是readonly。您应该使用PortfolioItem:
toCreate["PortfolioItem"] = "/portfolioitem/feature/12345";