Retrieving artifact type in RRC with REST API
I need to retrieve programmatically the type (e.g. "Feature", or "Use Case" ...) of an RRC artifact, using REST API.
In addition, the only information I have about the artifact is its UUID, so I need to learn how to build a REST API query that uses this UUID as a filter. Any snippets of code that address these issues are welcome. My RRC version is 4.0.6. |
Accepted answer
You can calculate the URL by appending the artifact UUID - https://server:port/rm/publish/resources?resourceURI=UUID
To retrieve the artifact type, you can use datasource/artifact/collaboration/attributes/objectType/name. Luca Martinucci selected this answer as the correct answer
Comments 1
Donald Nong
commented Jan 13 '15, 10:51 p.m.
The artifact type should be returned in the response to the URL mentioned above - look for "attribute:name" in the <attribute:objectType> tag.
Luca Martinucci
commented Jan 15 '15, 4:28 a.m.
Thanks for the suggestion, I will try it.
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.