Rally - 使用 REST 使用标签创建用户故事(非 API)
Rally - Create User Story with tags using REST (non-API)
如何在 Rally 中 add/attach 标签的同时 creating/updating 用户故事?我正在使用下面的 JSON 脚本,但出现错误 "cannot find referenced object"。我错过了什么?
{
"HierarchicalRequirement": {
"Description": "As a developer to create a user story",
"Name": "User story to be created",
"Notes": "Created via REST Client",
"Project": {
"_ref": "https://rally1.rallydev.com/slm/webservice/v2.0/project/1302421049",
"_refObjectName": "Sample Project",
"_type": "Project"
},
"Tags": {
"_type": "Tag",
"_tagsNameArray": [{
"Name": "My Tag"
}],
"Count": 1
}
}
}
提前致谢,
狮子座。
您只需要对您的标签进行一些不同的编码,您就会拥有它。标签(和所有集合)期望被指定为具有 _ref 属性的对象数组,如下所示:
"Tags": [
{
"_ref": "/tag/12345"
},
{
"_ref": "/tag/23456"
}
]
如何在 Rally 中 add/attach 标签的同时 creating/updating 用户故事?我正在使用下面的 JSON 脚本,但出现错误 "cannot find referenced object"。我错过了什么?
{
"HierarchicalRequirement": {
"Description": "As a developer to create a user story",
"Name": "User story to be created",
"Notes": "Created via REST Client",
"Project": {
"_ref": "https://rally1.rallydev.com/slm/webservice/v2.0/project/1302421049",
"_refObjectName": "Sample Project",
"_type": "Project"
},
"Tags": {
"_type": "Tag",
"_tagsNameArray": [{
"Name": "My Tag"
}],
"Count": 1
}
}
}
提前致谢,
狮子座。
您只需要对您的标签进行一些不同的编码,您就会拥有它。标签(和所有集合)期望被指定为具有 _ref 属性的对象数组,如下所示:
"Tags": [
{
"_ref": "/tag/12345"
},
{
"_ref": "/tag/23456"
}
]