It's all about the answers!

Ask a question

How to create a query from Java API to filter workitems based on Parent ID?

Muthukumar C (32712833) | asked Sep 18 '12, 12:44 a.m.

It is possible to do a query from RTC front end as Parent --> ID = 1234. So that the Work Items with the Parent ID as 1234 will be displayed in the Result.

Same scenario I want to achieve thru Java API query. (Server Side). Is it possible? How?

Thanks in advance.

Muthukumar C commented Sep 18 '12, 12:45 a.m. | edited Sep 18 '12, 12:46 a.m.

I don't want to use the End point descriptor to get the Parent / Children because, I want to restrict the search within the Current project area.

One answer

permanent link
Lauren Hayward Schaefer (3.3k11427) | answered Sep 18 '12, 7:37 a.m.
To do so from the RTC Web Client, go to Work Items > Create Query.  Click Add Condition.  In the Add Condition box, expand Parent.  Click ID.  Click Add Attribute Condition.  In the Parent > ID is box, type 1234.  Click Run.

I'm unfamiliar with how to query work items through the Java API, but I'm sure it's possible.

Muthukumar C commented Sep 18 '12, 7:39 a.m. | edited Sep 18 '12, 7:39 a.m.

Thanks Lauren, I wanna do it Server Side plugin thru Java API. Lets wait for some more answers

Your answer

Register or to post your answer.