How to extract DNG baseline information (such as baseline name, creation time and created by) for all the created baselines using RPE?

Hi Team,
I am trying to create an RPE report which prints a table containing information of all the created baselines from DNG. It is for Non-GC project area.
Attributes to extract - Baseline Name, Creation Date and Created By.
Please let us know if there is any way to extract this information directly or through any possible work around.
Thanks & Regards,
Sandhya
2 answers

Hi Sandhya
There may be other ways but this post has an example of the RM discovery sequence which includes finding the configurations in a component - https://jazz.net/forum/questions/266334/dng-oslcfetch-components-from-project-area/266667 which I guess you could do from RPE javascript.
If you already have a configuration url, GET it (with headers OSLC-Core-Version: 2.0 and Accept: application/rdf+xml) is a quick way to find the component url in a tag like
<oslc_config:component rdf:resource="https://jazz.ibm.com:9443/rm/cm/component/_DaJb8LFXEe-j4_rM2KKkmw"/>
this is shown in the answer I linked to.
As per that answer, GET the component url (same headers) and the configurations URL is in a tag like:
<oslc_config:configurations rdf:resource="https://jazz.ibm.com:9443/rm/cm/component/_NUHKsLFXEe-j4_rM2KKkmw/configurations"/>
That gives you the url of all configs in the component in a series of rdfs:member tags - follow those to get the config name etc.
Regards
Ian
Comments

Hi Ian,
Are these steps suitable for an opt-out project?
Regards,
Sandhya

Yes seems to work - for 7.x under the hood for an opt-out project is a project just like any other except it can only have one stream.

Hi Ian,
When I access the below URL,
I’m able to view only the list of opt-in project areas. However, I’m unable to see any opt-out project areas listed there.
Could you please help on how to navigate to the opt-out project areas from this endpoint, or let me know if there’s an alternative approach to access them?
Regards,
Sandhya

Sandhya,
There's no public supported API that I'm aware of that does this.
You can try something like:
https://<server>/rm/queryvvc/configurationsforcomponent?component=https://<server>/rm/rm-projects/<projectID>/components/<componentID>&configurationtype=snapshot
Before you say that this isn't opted in to CM, I was able to do this with a project not in CM. I got the componentID from the URL in the project area when I went to the module.
This returned JSON that gave me a list of all the baselines in the project!
https://<server>/rm/queryvvc/configurationsforcomponent?component=https://<server>/rm/rm-projects/<projectID>/components/<componentID>&configurationtype=snapshot
Before you say that this isn't opted in to CM, I was able to do this with a project not in CM. I got the componentID from the URL in the project area when I went to the module.
This returned JSON that gave me a list of all the baselines in the project!
Kevin Murphy
IBM Champion
Comments
Alessandra Cristina Andrade
Aug 04, 1:03 p.m.Hi Sandhya,