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

How to fetch baseline name from Component Handle from server extensions

Hello,
I am having component handle, based on the component handle or component name, i need to fetch list of baseline.
Please let me know how to do it from server side extensions

Regards,
Sudipto

0 votes



2 answers

Permanent link
like on client side SCMPlatform, you will need to use the SCMService class on the server

find that in the sdk.  there is no doc for server side classes.

0 votes


Permanent link

Hello Sam,

Till this much we got.

Able to get component name and component handle.

Please let me know how to get baseline for a changeset/component

IChangeSetHandle changeSetHandle = (IChangeSetHandle) link.getSourceRef().resolve();

      IChangeSet changeSet =

          (IChangeSet) repositoryItemService.fetchItem(changeSetHandle, IRepositoryItemService.COMPLETE);

 

 

      // Get the Component-Name(s) for respective Change-Set(s)

      IComponentHandle componentHandle = changeSet.getComponent();

 

      IComponent componentRepoService =

          (IComponent) repositoryItemService.fetchItem(componentHandle, IRepositoryItemService.COMPLETE);

0 votes

Your answer

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,938

Question asked: Aug 03 '15, 8:19 a.m.

Question was seen: 2,499 times

Last updated: Aug 03 '15, 9:27 a.m.

Confirmation Cancel Confirm