It's all about the answers!

Ask a question

Get child baselines from parent baseline name in Global configuration in JAZZ 7.0.3


Arati Kulkarni (1314) | asked Sep 23, 10:46 a.m.
Hello, 
I am trying to get baselines hierarchy from a parent baseline in global configuration using OSLC query.
  • GC Component <o:p> </o:p>

o   GC configuration Baseline <o:p> </o:p>

§  used local application sub configuration Baselines. <o:p> </o:p>

·       Baseline_1 <o:p> </o:p>

        • Baseline_2 <o:p> </o:p>
          • Baseline_3 <o:p> </o:p>
            •  

·       Baseline_4 <o:p> </o:p>

        • Baseline_5 <o:p> </o:p>
          • Baseline_6 <o:p> </o:p>
            • … <o:p> </o:p>

I need to get names of highlighted baselines under baselines. <o:p> </o:p>

We are working on JAZZ versions 7.0.2 and 7.0.3 both.

Thanks & Regards

2 answers



permanent link
Ralph Schoon (63.5k33646) | answered Sep 24, 10:56 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Sep 24, 11:10 a.m.

I do not have experience with the OSLC Query in GC. As far as I can tell, you can usually get one or more elements using OSLC query. If you want to understand more about the items you got, you have to iterate the items you are interested in and compute the information. 

Configurations have links to parent or child configurations. They have also information such as name, description or other data. If you want to understand the structure and find the items in it, you have to get a set of items, get the detais such as name, follow the parent or child links and build up e.g. a map or maps with the configuration ID's the parent / child configuration ID's, the names, whatever is needed for your use case.

There is a project https://github.com/jazz-community/dng-type-system-management that shows some code and howto that one can look at. It is not the nicest code I have ever written. 


permanent link
Ian Barnard (2.3k714) | answered Sep 25, 6:29 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

There is a GC API to get a flat list of contributions - note this is nothing to do with OSLC Query.


Browse to your https://SERVER:PORT/gc/doc/scenario?id=GetFlatListOfContributionsForGcHiearchy to see the documentation.


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.