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

"Deliver change sets" follow-up action info

If we configure a follow-up action to be executed when change sets are delivered, we can retrieve information about flow target and change-sets simply from the operation data:
DeliverOperationData data = (DeliverOperationData) operation.getOperationData();
IWorkspace stream = data.getDestWorkspace();
List<IChangeSetHandle> csHList = data.getChangeSetHandles();
If we configure a change event to be executed when change sets are delivered, we are not able to retrieve the same information from the change event:
IChangeSetHandle csH = event.getItem();
The missing information about the flow target and the change-sets seems to be available since the event description reports these:
 ADMIN delivered 2 change sets to STREAM
Any advice on how to retrieve this information?
In addiction, if we deliver more than one change-set, we cannot obtain the full list of change-sets delivered, but only the first one...
Any advice on how to retrieve all change-sets?
Thanks in advance.

0 votes



2 answers

Permanent link
Quite the same question here: https://jazz.net/forum/questions/211771/how-can-i-get-all-the-delivered-change-sets-in-event-handler

It seems you can only get one single change-set (the oldest). In the event.getDescription() you have some information more (the work-item associated, the change set comment) for all the delivered change-sets. But it is only a string so you will need to find the correct change-sets. And on the other hand you cannot do the same thing with the baseline deliver handler on which find the change-sets seems much more difficult.


0 votes


Permanent link
 In the event.getDescription() you have some information more (the work-item associated, the change set comment) for all the delivered change-sets. But it is only a string so you will need to find the correct change-sets. 
Yes, the event description reports this:
 ADMIN delivered 2 change sets to STREAM
but a pattern matching with this message would be quite weak (e.g., it is not always in English).
Thanks Michele.

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,930
× 12

Question asked: Nov 26 '15, 10:59 a.m.

Question was seen: 3,496 times

Last updated: Nov 27 '15, 6:12 a.m.

Confirmation Cancel Confirm