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

How to query an RRC baseline with RPE?

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

0 votes


Accepted answer

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

0 votes

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.


And yes you can use it with those parameters as well

1 vote


One other answer

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

1 vote

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


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
× 12,015
× 7,488

Question asked: Jun 13 '13, 3:59 p.m.

Question was seen: 5,578 times

Last updated: Jul 03 '13, 5:45 a.m.

Confirmation Cancel Confirm