It's all about the answers!

Ask a question

How to query an RRC baseline with RPE?


Joe Gariano (8813137) | asked Jun 13 '13, 3:59 p.m.
I'm using version 4.0.2 of RRC.  I've created a baseline called "BASELINE_APRIL29_9am" for an RRC project.  I would like to query elements of that baseline using RPE, and not pick up content from the RRC project that was added after the baseline.  I know how to use RPE to pull elements out of the latest version of the RRC project; I want to know how to configure the data source to run the same RPE templates on a baseline version.

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


permanent link
Edgar Ignacio Velazquez Mar (7225) | answered Jun 13 '13, 5:38 p.m.
JAZZ DEVELOPER
 Hi Joe,
 Indeed "snapshotId" and "baseline" are synonyms . What you need to provide is the UUID (Unique identifier) of the baseline.
 I do suggest you open an enhancement request to support baseline by name and not just by UUID.
Joe Gariano selected this answer as the correct answer

Comments
Joe Gariano commented Jun 13 '13, 7:22 p.m.

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


1
Edgar Ignacio Velazquez Mar commented Jun 14 '13, 9:37 a.m.
JAZZ DEVELOPER

You can use Stef's approach to obtain the UUID of the view.


And yes you can use it with those parameters as well

One other answer



permanent link
Stef van Dijk (2.0k179) | answered Jun 13 '13, 5:13 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
Hi Joe,

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
Erwin Kunz commented Jul 03 '13, 5:45 a.m.

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


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.