It's all about the answers!

Ask a question

To retrieve status of story/defects with a given task id using java API

arun sudarsanam (254) | asked Jun 19 '17, 4:01 a.m.

 Hi All,

I am completely new to RTC Java API's. 
I need to get status of story/defects associated with the given task id using Java API.
What API should be used and what methods need to accessed to get status of parent work item (story/defects) with given task id.

Accepted answer

permanent link
Ralph Schoon (60.5k33643) | answered Jun 19 '17, 4:11 a.m.

 Start here:

There are different APIs. My blog explains the Java APIs. Understanding and Using the RTC Java Client API 
is an introduction into the Java client API and links to other topics. All articles point to the getting started and Setting up Rational Team Concert for API Development. 

Java Client code example:

IWorkItemClient workItemClient = (IWorkItemClient) teamRepository

int id = new Integer(idString).intValue();
IWorkItem workItem = workItemClient.findWorkItemById(id, IWorkItem.FULL_PROFILE, monitor);

arun sudarsanam selected this answer as the correct answer

Your answer

Register or to post your answer.