It's all about the answers!

Ask a question

What is the equivalent in 6.0.2 of IWorkItemClient.findWorkItemById


Eric Nelson (1515) | asked Jun 17 '16, 4:32 p.m.
edited Jun 17 '16, 4:34 p.m.
 In all of the examples that I find for getting a work item, they talk about do something like the following code:
IWorkItem workItem = workItemClient.findWorkItemById(String.valueOf(i),IWorkItem.FULL_PROFILE, myProgressMonitor);
	
	

As far as I can tell this method no longer exists. What is the equivalent replacement method or methods?

Thanks,
Eric

Accepted answer


permanent link
Ralph Schoon (63.1k33646) | answered Jun 20 '16, 1:58 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Jun 28 '16, 2:46 a.m.
The method is and always has been

com.ibm.team.workitem.common.IWorkItemCommon.findWorkItemById(int, ItemProfile<IWorkItem>, IProgressMonitor)

com.ibm.team.workitem.client.IWorkItemClient is still available and inherits the IWorkItemCommon interface and thus has this method as well.
Eric Nelson selected this answer as the correct answer

Comments
Ralph Schoon commented Jun 20 '16, 1:59 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

In my early examples I was too ignorant to understand the difference 8)

Your answer


Register or 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.