How to get and update the owner of the work item via Java API?
![]()
I can get and update some string attributes of a work item via Java API.
copiedWorkItem is the object of IWorkItem;
String currentSummary = copiedWorkItem.getHTMLSummary().getPlainText().trim();
if (!currentSummary.equalsIgnoreCase(workitem.getSummary().trim())){
IAttribute summaryAttribute= workItemClient.findAttribute(projectArea, IWorkItem.SUMMARY_PROPERTY, monitor);
copiedWorkItem.setValue(summaryAttribute, workitem.getSummary());
}
But I cannot get and set the value of "Owner". Who can help me?
|
Accepted answer
One other answer
![]()
Thanks Andrew. I used this in my project and it worked.
But I think it is very hard to find the correct API with clear specification. |
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.