Question

I've done some research on this topic, but haven't found anything useful.

I need to add an existing defect to an existing defect suite using the Rally rest API.

Does anybody know how to do this? I've tried a number of things, none of which work.

Any tips, suggestions, pointers would be greatly appreciated.

thanks in advance, Brian.

Was it helpful?

Solution

In a browser's REST client please try to POST:

https://rally1.rallydev.com/slm/webservice/v2.0/defectsuite/22222/defects/add?key=abc123...

using this request body:

{
    "CollectionItems": [
    {"_ref": "/defect/3333"}
]
}

For more info on how v2.0 deals with collections please see Collection section in WS API documentation.

Also, notice that authorization key needs to be generated first:

https://rally1.rallydev.com/slm/webservice/v2.0/security/authorize

You will GET back a string

{"OperationResult": {"_rallyAPIMajor": "2", "_rallyAPIMinor": "0", "Errors": [], "Warnings": [], "SecurityToken": "abc123..."}}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top