在处理此请求期间忽略JSON元素changeset.Artifact

时间:2013-10-08 22:52:18

标签: rest rally

如何将变更集链接到工件?我在创建变更集时在rest客户端中指定了缺陷

{"changeset":{
"Message":"1234 abcd",
"Artifact":"/defect/567890",
"SCMRepository":"/scmrepository/123456",
"Revision":"1",
"CommitTimestamp":"2013-10-08"
}}

创建了变更集,但没有链接到缺陷

1 个答案:

答案 0 :(得分:0)

变更集对象上有Artifacts个集合,但变更集上没有Artifact属性。

要链接到工件,请按如下所示修改Request Body:

{"changeset":{
"Message":"1234 abcd",
"Artifacts":{"Artifact":"/defect/14537223513"},
"SCMRepository":"/scmrepository/5960544988",
"Revision":"1",
"CommitTimestamp":"2013-10-08"
}}