get defect or task owner
Hi all ,
how can i read Task or defect owner by java api???
Thanks
Gabi
|
2 answers
Hi, Gabi
Please check with sample code in Ralph's blog here: https://rsjazz.wordpress.com/2014/05/26/only-owner-can-close-workitem-advisor/ There you can find out more than getting work item's owner by Java API. Thanks |
Hi Gabi,
Tasks and defects are nothing but workitems. There is a direct method available to fetch the owner of the workitem. iWorkItem.getOwner(); It returns IContributorHandle, out of which you can get the original contributor. Kindly let me know if this is not what you are looking for. Cheers, Ajay Comments
Gabi mordov
commented Jun 05 '14, 12:32 a.m.
Hi Ajay,
i was already tried iWorkItem.getOwner();
and i am getting IContributorHandle.
but how can i get an owner name from this class???
This is my actual problem.
Thanks again
Gabi
You can IItem from IContriubutor in following way, and in turn the name of contributor....,
Gabi mordov
commented Jun 08 '14, 12:31 a.m.
Thanks allot.
it solved my problem.
have a nice day
gabi
|
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.