It's all about the answers!

Ask a question

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


Thiago Barreto (1013) | asked Sep 15 '15, 11:36 a.m.
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() ?

Accepted answer


permanent link
Ralph Schoon (63.1k33645) | answered Sep 15 '15, 11:59 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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

Comments
Thiago Barreto commented Sep 15 '15, 4:49 p.m.

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 to post your answer.