It's all about the answers!

Ask a question

baseline names of the component use RTC-SDK-Server-6.0.6.1 api


siavash ara (112) | asked Nov 03 '19, 11:24 a.m.
hi all

I can use the IComponent  get the InitialBaseline ,how can i get all the baseline names of the component use RTC-SDK-Server-6.0.6.1 api

IRepositoryItemService itemService=getService(IRepositoryItemService.class);
IComponent this_component = (IComponent)item; 
IBaselineHandle this_baselineHandle = this_component.getInitialBaseline();
IBaseline  this_baseline = (IBaseline) itemService.fetchItem(this_baseline, IRepositoryItemService.COMPLETE);

One answer



permanent link
David Lafreniere (4.8k7) | answered Nov 06 '19, 4:06 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
1) IBaselineSearchCriteria.setComponentRequired(component) to return all baselines in that component. It will return handles (so you'll have only the itemID).

2) Pass the IBaselineSearchCriteria into IScmQueryService.findBaselines()

3) Fetch the full IBaseline from the handles from step 2, and then use IBaseline.getName()

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.