English 中文(简体)
如何创建儿童故事, 并使用 Rally REST API 与家长用户故事连结?
原标题:How to create a Child Story and associate it with a Parent User Story using Rally REST API?

我使用Rally REST API将来自 Rally 的用户故事数据整合到另一个应用程序中。 我理解如何创建一个故事并将其与一个工作空间、工程和迭代联系起来, 但我如何插入它作为儿童故事, 并将其与另一个父母故事联系起来。 这是我迄今尝试过的。

Dim restApi As RallyRestApi = RunTimeConfig.GetRallyApi()
Dim djo As New DynamicJsonObject()
djo("Name") = cs.StoryName
djo("Description") = cs.StoryDesc
djo("WorkSpace") = "/workspace/" & pj.WorkspaceID
djo("Project") = "/project/" & pj.ProjectID
djo("Iteration") = "/iteration/" & it.SprintID
djo("Parent") = "/hierarchicalrequirement/" & par.UserStoryID
Dim re As CreateResult = restApi.Create("hierarchicalrequirement", djo)

上述情况构成Key NotFound例外。

我也尝试先创造故事, 然后再更新如下:

Dim toUpdate As New DynamicJsonObject()
toUpdate("Parent") = "/hierarchicalrequirement/" & par.UserStoryID
Dim result As OperationResult = restApi.Update(re.Reference, toUpdate)

但还是帮不上忙

问题回答

您正在使用哪些版本的 REST API? KeyNotFoundException 很可能是库库早期版本中围绕解析错误出现错误的结果。 可能发生的情况是创建失败, 但“ 创建Result” 没有正确解析返回错误 。 我建议升级到这里可用的最新版本 :

http://developer.rallydev.com/help/rest-api-net





相关问题
Is Shared ReadOnly lazyloaded?

I was wondering when I write Shared ReadOnly Variable As DataType = New DataType() Or alternatively Shared ReadOnly Variable As New DataType() Is it lazy loaded or as the instance initializes? ...

Entertaining a baby with VB.NET

I would like to write a little application in VB.NET that will detect a baby s cry. How would I get started with such an application?

Choose Enter Rather than Pressing Ok button

I have many fields in the page and the last field is a dropdown with list of values. When I select an item in a dropdown and press Enter, it doesn t do the "Ok". Instead I have to manually click on Ok ...

ALT Key Shortcuts Hidden

I am using VS2008 and creating forms. By default, the underscore of the character in a textbox when using an ampersand is not shown when I run the application. ex. "&Goto Here" is not ...

Set Select command in code

On button Click I want to Set the Select command of a Gridview. I do this and then databind the grid but it doesn t work. What am i doing wrong? protected void bttnView_Click(object sender, ...

Hover tooltip on specific words in rich text box?

I m trying to create something like a tooltip suddenly hoovering over the mouse pointer when specific words in the richt text box is hovered over. How can this be done?

热门标签