workitem getOwner
For example I got a code like this: (this code does not work, it is not returning a string)
public String getOwner(IWorkItem workItem) { return workItem.getOwner(); } getOwner() returns a IContributorHandle. But what can I do with this handle? |
Accepted answer
Something like this should work:
IContributorHandle conHandle = wi.getOwner(); Ralph Schoon selected this answer as the correct answer
Comments
Albert Yao
commented Jun 14 '14, 6:04 a.m.
"ITeamRepository" is the object of client side.
When I develop a plug-in/advisor in the server side, it will always be "null".
What should I do in the server side?
|
One other answer
Something like this should work: That works perfectly although I used IContributorHandle[] contributors = projectArea.getMembers(); to get the list of members then looped through them using them as the conHandle to find the user I wanted form those in the project area, words cannot describe how useful this was. |
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.