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

How to get ChangeSetHandles after phase 2 delivery, using java server side API?

   I'm trying to get the ComponentHandle after a phase 2 delivery from the IScmDeltaSource.  I noticed the operation date for a phase 1 delivery gives the DeliverOperationData  and you can the ChangeSetHandles from it. 
DeliverOperationData deliverOpData = (DeliverOperationData) data;
changeSetHandles = deliverOpData.getChangeSetHandles();

How can I achieve this for phase 2?  Ultimately, I would like to get the component/component name from the change.  

0 votes



2 answers

Permanent link
If you have IChangeSetHandles then you can fetch the IChangeSets from them. The IChangeSet will have a getComponent(), which returns an IComponentHandle. Similarly, if you fetch the IComponent from the handle you can get the component's current name.

I hope that this helps,
Chris

0 votes


Permanent link
Unfortunately is not so easy and linear as the phase 1 extension:
the operation.getOperationData() method returns an IScmDeltaSource instance. From this one you can use the method getDeltas() to obtain two object in an iterable: you have to catch the IChangeHistoryAddOperandDelta object that have a getAdditionalChangeSets method you can use to retrieves the change-set delivered.

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,937
× 382

Question asked: Nov 24 '15, 11:37 a.m.

Question was seen: 3,000 times

Last updated: Nov 30 '15, 3:51 a.m.

Confirmation Cancel Confirm