Rally Rest API .... add defect to defect set

I did some research on this topic, but did not find anything useful.

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

Does anyone know how to do this? I tried several things, none of which work.

Any tips, suggestions, pointers are welcome.

thanks in advance, Brian.

+4
source share
1 answer

In the browser REST client, try 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 information on how v2.0 works with collections, see the Collection section in the WS API documentation .

Also note that you must first create an authorization key:

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

You will return the string

 {"OperationResult": {"_rallyAPIMajor": "2", "_rallyAPIMinor": "0", "Errors": [], "Warnings": [], "SecurityToken": "abc123..."}} 
+1
source

Source: https://habr.com/ru/post/1494122/


All Articles