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

How can I get all the delivered change sets in event handler?

Hi,
I have the following needed: i need to change the state of a work item after all the linked change-sets have been delivered. In order to achieve this I initially develop 2 extension:
- a followup of the delivery operation that gets all the change-set links and verifies that are all already delivered an then perform a change of state
- a precondition on the save work item that blocks the change of state if not all the change-sets have been delivered

The two extension work well one by one but when runned togheter (like in the last deliver) I have a big problem: in the save work item precondition (triggered by the followup change of state) I cannot see the change sets in delivery as part of the history of the target stream (probably because the entire operation is still running).

So I change my first extension in an event handler, of category com.ibm.team.scm.eventCategory.delivery . The problem is that the event handler is called only one time for every deliver, regardless how many change sets are involved (correctly), but the event.getItem() returns only ONE change set (the older one) and not all the change sets involved (they are mentioned only in the event description but I don't like to rely in regular expression on a pre-compiled string).

What can I do to get all the change sets involved?

Thanks,
Michele.

0 votes

Comments

Michele, any updates on this issue?
I have the same need.

Unfortunately no. I had to change approach..


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,941
× 43

Question asked: Nov 25 '15, 6:42 a.m.

Question was seen: 2,500 times

Last updated: Feb 11 '16, 8:43 a.m.

Confirmation Cancel Confirm