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

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

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?

0 votes



One answer

Permanent link
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.

0 votes

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

Question asked: Jan 18 '16, 8:55 p.m.

Question was seen: 1,955 times

Last updated: Jan 19 '16, 2:54 a.m.

Confirmation Cancel Confirm