It's all about the answers!

Ask a question

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


Raj Kumar (219) | asked May 31 '21, 8:31 a.m.
edited May 31 '21, 2:28 p.m. by Ralph Schoon (61.5k33643)

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.