It's all about the answers!

Ask a question

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

Thiago Barreto (103) | 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 (61.8k33643) | answered Sep 15 '15, 11:59 a.m.
See 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

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.


Your answer

Register or to post your answer.