我想通过 Rally API 发布到用户故事的新连接;但是,我不断收到错误消息。我可能做错了什么?
我尝试使用此 API 端点:https://rally1.rallydev.com/slm/webservice/v2.0/changeset/create
与Content-Type: text/plain
{
"Changeset": {
"Message":"another test"
}
}
我得到了这个回应
{
"CreateResult": {
"_rallyAPIMajor": "2",
"_rallyAPIMinor": "0",
"Errors": [
"Validation error: Changeset.SCMRepository should not be null"
],
"Warnings": []
}
}
然后我在下面尝试了这个
{
"Changeset": {
"Message":"another test",
"SCMRepository": {
"ObjectName": "TestGithubRallyIntegration"
}
}
}
并得到
{
"CreateResult": {
"_rallyAPIMajor": "2",
"_rallyAPIMinor": "0",
"Errors": [
"Cannot parse object reference from \"{\"SCMRepository\": {\"ObjectName\": \"TestGithubRallyIntegration\"}}\""
],
"Warnings": []
}
}
我可能做错了什么?
于是,我找到了出路。
uri:https : //rally1.rallydev.com/slm/webservice/v2.0/changeset/create
{
"Changeset": {
"Message":"another test",
"Artifacts": {"Artifact":"/HierarchicalRequirement/<UserStory also known as HierarchicalRequirement>"},
"SCMRepository": "/scmrepository/<Id>",
"Revision":"1",
"CommitTimestamp":"2018-08-18"
}
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句