It's all about the answers!

Ask a question

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


Raj Kumar (218) | asked May 31, 8:31 a.m.
edited May 31, 2:28 p.m. by Ralph Schoon (59.4k23642)

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.