JavaPlainApi get workItem references from workItemCopy is always null
I'm developing a RTC Client with the Java Plain API 4.0.1. The client gets a WorkItem by Id and then it uses a WorkItemOperation for getting the current references and performing some modifications but the workitem references are always null although I can see the WI has links to other WIs on the web browser. ¿What else is needed for getting de references?
private static class WorkItemReferencesModification extends WorkItemOperation { |
2 answers
Ralph Schoon (63.1k●3●36●45)
| answered Oct 18 '17, 9:46 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER I have published how that worked for me here
|
Hi Ralph, actually I read both articles and on other RTC 5.0.2 I have a client where this works right. But on this RTC 4.0.1 references come empty. I used your method analyzeReferences(IWorkItemReferences references) but on List endpoints = references.getTypes(); does not return any type.
IWorkItemCommon common= (IWorkItemCommon) ((ITeamRepository)workItem.getOrigin()).getClientLibrary(IWorkItemCommon.class); IWorkItemReferences references = common.resolveWorkItemReferences(workItem, null);Maybe if I use IQueryResult the references could come resolved. |
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.