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

How to obtain the related work items during "deliver phase 2"?

I developed an operation participant to automatically request a build when a deliver is performed (on "Deliver Phase 2" operation id).

Now, I would like to add the work items referenced on all changesets delivered as links to the build result.

Is there a way to obtain the referenced work items using the IScmDeltaSource provided by operation.getOperationData() ?

0 votes


Accepted answer

Permanent link
See https://rsjazz.wordpress.com/2012/11/01/restrict-delivery-of-changesets-to-workitem-types-advisordelivery-of-changesets-associated-to-wrong-work-item-types-advisor/ for the minimal API you need to know. The example is for deliver, not deliver phase 2.
Thiago Barreto selected this answer as the correct answer

0 votes

Comments

I wanted this participant to be the last to be executed, that's why I chose deliver phase 2. But after testing, I figured that deliver phase 2 participants are actually executed first.

So, following your suggestion seems to be the best for now.

Thanks!

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

Question asked: Sep 15 '15, 11:36 a.m.

Question was seen: 1,538 times

Last updated: Sep 15 '15, 4:49 p.m.

Confirmation Cancel Confirm