It's all about the answers!

Ask a question

How to get the build requstor from the build result by server side API?


Jia Jia Li (8057155192) | asked Jan 18 '16, 8:55 p.m.
I am creating the follow up action for build result event handling. I can get the build result and then I want to get the requester.
I use the following code to get requester, but the return always null.
 IContributorHandle requester = buildResult.getModifiedBy();
The javadoc said these:
"Returns the contributor responsible for creating this state of the item.
A newly-created item may or may not carry the contributor's id. The initial state of an item bears the item id of the contributor that created the item; other states bear the item id of the contributor that made the change that resulted in that state. "

Any one can help?

One answer



permanent link
Ralph Schoon (63.2k33646) | answered Jan 19 '16, 2:54 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
This is the contributor that changed or modified the build result, at best, but not the one that requested the build.

I would try com.ibm.team.build.common.model.IBuildResult.getBuildRequests() and from the IBuildRequest try
com.ibm.team.build.common.model.IBuildRequest.getInitiatingContributor() . I haven't tried this.

Your answer


Register or 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.