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() ? |
Accepted answer
Ralph Schoon (63.1k●3●36●45)
| 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.
|