It's all about the answers!

Ask a question

"Deliver change sets" follow-up action info


SEC Servizi (97123860) | asked Nov 26 '15, 10:59 a.m.
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.

2 answers



permanent link
Michele Pegoraro (1.8k14119103) | answered Nov 27 '15, 5:03 a.m.
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.



permanent link
SEC Servizi (97123860) | answered Nov 27 '15, 6:09 a.m.
edited Nov 27 '15, 6:12 a.m.
 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.

Your answer


Register or 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.