Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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.

0 votes


Accepted answer

Permanent link
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

1 vote

Comments

The artifact type should be returned in the response to the URL mentioned above - look for "attribute:name" in the <attribute:objectType> tag.

1 vote

Thanks for the suggestion, I will try it.

It worked, thank you very much!

1 vote

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938
× 480

Question asked: Jan 13 '15, 5:32 a.m.

Question was seen: 2,990 times

Last updated: Jan 20 '15, 6:02 a.m.

Confirmation Cancel Confirm