How to query an RRC baseline with RPE?
In the RRC Reportable Rest API Wiki (https://jazz.net/wiki/bin/view/Main/RRCReportableRestAPI), they say that you can filter by snapshot using the following URL structure for the data source:
https://server:port/rm/publish/[artifact_format]?snapshotId=id1
Assuming that "snapshot" and "baseline" were synonymous terms, I used my baseline name in id1 (with the other parts of the URL filled in correctly):
https://server:port/rm/publish/[artifact_format]?snapshotId=
BASELINE_APRIL29_9am
However, this returns an empty data source.
Is there a way to do what I'm trying to do? If so, what URL do I use for the data source?
Thanks,
Joe
Accepted answer
Comments
Thank you. Edgar, how do I get the UUID? Do I use the method Stef described?
Also, in the description section for filter by snapshot on the REST Wiki, it says:
"Provides base resource information for all resources belong to the specified project snapshot. This argument can be used in conjunction with the ?resourceURI= argument."
Does this imply that I can only pair this with the ?resourceURI argument? Or could I instead pair with with other arguments? In particular, I'd like to pair the ?shapshotId argument with both the ?viewName and ?projectName arguments.
Thanks,
Joe
You can use Stef's approach to obtain the UUID of the view.
1 vote
One other answer
I'm not completely positive as I've not tried this myself, but I strongly suspect that the id is the unique identifier of the baseline and not the human readable name you gave it.
If you hover over the baseline link in the sidebar, you can copy that link (or see it in the browser status line). The id will be the very last part of the url (the "slug") after 'jts/baselines/' and starting with the underscrore ('_'). If that doesn't work, you can try the full url, but it's likely just the "slug".
Comments
Hi Stef, Edgar
I'm looking for similar info in https://jazz.net/forum/questions/115760/how-to-create-a-rrdg-report-with-the-result-of-collection-compare
Hovering over the baseline and getting the UID can be ok for a Admin, but for an end user it's questionable.
Is there a way to get the list of existing Baseline in a Project?
Thanks
erwin