在使用Rally WSAPI添加用户故事时定义前置版本
我正在开发一个.NET应用程序,将用户故事添加到我们的Rally工作区,我想将其中一个用户故事设置为下一个用户故事的前身。我可以很好地添加故事,但是没有创建前置/后续关系。我没有收到任何错误,只是没有创建前置程序。(我正在使用Rally.RestApi.NET库) 我有第一个故事的_ref值,我尝试将DynamicJsonObject上的“preventors”属性设置为该值在使用Rally WSAPI添加用户故事时定义前置版本,rally,Rally,我正在开发一个.NET应用程序,将用户故事添加到我们的Rally工作区,我想将其中一个用户故事设置为下一个用户故事的前身。我可以很好地添加故事,但是没有创建前置/后续关系。我没有收到任何错误,只是没有创建前置程序。(我正在使用Rally.RestApi.NET库) 我有第一个故事的_ref值,我尝试将DynamicJsonObject上的“preventors”属性设置为该值 followUpStory[“preventors”]=firstStoryRef 我还尝试创建一个字符串数组,但运气不
followUpStory[“preventors”]=firstStoryRef代码>
我还尝试创建一个字符串数组,但运气不好
followUpStory[“preventors”]=新字符串[]{firstStoryRef}代码>
我尽量减少代码示例,因为故事创建得很好,这是唯一的问题,但请告诉我分享更多内容是否有用。最简单的方法是使用AddToCollection方法。查看文档:
比如说:
DynamicJsonObject firstStory = new DynamicJsonObject();
firstStory["_ref"] = firstStoryRef;
List<DynamicJsonObject> predecessors = new List<DynamicJsonObject>() { firstStory};
OperationResult updateResult = restApi.AddToCollection(followUpStoryRef, "Predecessors", predecessors);
DynamicJsonObject firstStory=新的DynamicJsonObject();
firstStory[“_ref”]=firstStoryRef;
List preventors=new List(){firstStory};
OperationResult updateResult=restApi.AddToCollection(followUpStoryRef,“前置”,前置);
最简单的方法是使用AddToCollection方法。查看文档:
比如说:
DynamicJsonObject firstStory = new DynamicJsonObject();
firstStory["_ref"] = firstStoryRef;
List<DynamicJsonObject> predecessors = new List<DynamicJsonObject>() { firstStory};
OperationResult updateResult = restApi.AddToCollection(followUpStoryRef, "Predecessors", predecessors);
DynamicJsonObject firstStory=新的DynamicJsonObject();
firstStory[“_ref”]=firstStoryRef;
List preventors=new List(){firstStory};
OperationResult updateResult=restApi.AddToCollection(followUpStoryRef,“前置”,前置);