baseline names of the component use RTC-SDK-Server-6.0.6.1 api
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
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
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.