It's all about the answers!

Ask a question

Querying grandchildren a workitem to show custom fields


Pravesh Patel (37612615) | asked Apr 15 '09, 10:18 a.m.
If I have a work item type hierarchy such as:

<parent>
- <child>
-- <grand_child>

Is there a way for to get the list of grandchildren of the parent and specify which custom fields to show? Although iteration plans provide a hierarchical view of work item, they do not allow us to specify the custom fields we'd like to show (in 1.0.1.1).

Ideally what we are looking for is a "join" query result, where we could show a query result like this:

<parent_field> <grand_child_field> .... <grand_child_field>
...
<parent_field> <grand_child_field> .... <grand_child_field>

We'd also like to be able to sort on custom fields in the result which we can not do today.

Any suggestions for this or part of this in the current release or 2.0?

One answer



permanent link
Mark Miller (41118) | answered Aug 10 '09, 2:51 p.m.
Is there a way to write a query to find all of the descendant work items for a single work item? I do not see a way to find the grandchildren much less arbitrarily deep trees.

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.