It's all about the answers!

Ask a question

How to link a task under the tracks of Adoption work-item


Raj Kumar (21216) | asked May 31 '21, 8:31 a.m.
edited May 31 '21, 2:28 p.m. by Ralph Schoon (63.1k33645)

String taskId=222
int adoptionId=111
IWorkItem workItem = workItemClient.findWorkItemById(id, IWorkItem.FULL_PROFILE, progressMonitor);
String workItemType = workItem.getWorkItemType();
if (workItemType.equalsIgnoreCase("com.ibm.team.workItemType.adoption")) {
// logic for link theĀ  "Task" work-item to "Adoption Item" under the Tracks
}

One answer



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.