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

Java API to get the baselineHandler from baselineName and BaselineId.

Hi All,

How do i get the baselineHandler from baselineName and BaselineId using java API.

Thankyou.

0 votes

Comments

What do you mean by 'baselineHandler'?

I guess the question is how to get the IBaseline object. If so, you could do the following to fetch based on baseline id:
IItemHandle baselineHandle = IBaseline.ITEM_TYPE.createItemHandle(baselineId, null);
IBaseline baseline = (IBaseline) repo.itemManager().fetchCompleteItem(baselineHandle, IItemManager.DEFAULT, null);
where repo is your ITeamRepository object.

To fetch based on baseline name:
IWorkspaceManager.findBaselines(IBaselineSearchCriteria criteria, ...)
In the criteria you can specify the name and whether it should be an exact match or not.


Be the first one to answer this question!

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
× 10,943
× 1,700

Question asked: Nov 20 '18, 5:53 a.m.

Question was seen: 1,756 times

Last updated: Nov 21 '18, 10:41 p.m.

Confirmation Cancel Confirm