It's all about the answers!

Ask a question

Getting an RRC item UUID via its ID


EclipseTalk . (32736061) | asked Aug 21 '15, 3:33 p.m.
Hello,
RRC artifacts are referenced by their UUID and not by their IDs like in RTC. What is the REST call to invoke to get the corresponding UUID and then access the artifact by constructing the URL?
I've tried the following link below but it doesn't work.
<code>https://<server>/rm/views?oslc.query=true&projectURL=https://<server>/jts/process/project-areas/_ofQVcqYcEeOX2tHPfFzjgA&oslc.prefix=dcterms=<http://purl.org/dc/terms/>&oslc.select=*&oslc.where=dcterms:identifier=151219</code>
Thank you


Accepted answer


permanent link
Gabriel Ruelas (1.1k13) | answered Aug 21 '15, 5:27 p.m.
Hi, The proper query URL must be obtained from the Service Provider document.
If obtained from the Service provider document, your query lookd good, since it seems similar to the one described in : https://jazz.net/library/article/1197 . Pls check that doc and verify that query URL is being properly obtained.
EclipseTalk . selected this answer as the correct answer

2 other answers



permanent link
Mike Jaworski (1.4k6) | answered Aug 21 '15, 3:41 p.m.
JAZZ DEVELOPER
 Hi,

What version of the product are you using? If you are using a 5.x version of RRC/RDNG, you may want to try using the project URL with the /rm context root, instead of /jts.

Do you get any sort of error when running this query, either in the response content or in the rm.log?

Thanks,
Mike

Comments
EclipseTalk . commented Aug 21 '15, 4:19 p.m. | edited Aug 23 '15, 10:59 p.m.

 I'm using 4.0.6 - 

The error I'm getting is

The following resource in the repository cannot be found: https://<server>/rm/views
hide details


Mike Jaworski commented Aug 21 '15, 4:25 p.m.
JAZZ DEVELOPER

 Could you check the rm.log to see if anything meaningful is logged during the timeframe when you execute this command?


EclipseTalk . commented Aug 21 '15, 5:01 p.m. | edited Aug 23 '15, 11:22 p.m.

 I don't see any error in particular in the rm.log. Is there a way to get the permanent link for an RRC artifact programmatically?

Thanks,


permanent link
EclipseTalk . (32736061) | answered Aug 21 '15, 7:14 p.m.
 I got it working by sending a GET request and parsing the response to get the artifact resource UUID.
Thanks all for your help

Your answer


Register or 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.