TFS 2013: Get all work items below a certain parent

Konrad picture Konrad · May 21, 2014 · Viewed 24.2k times · Source

how can I define a query in TFS 2013 (Team Explorer 2013) to get all items as a list below a certain toplevel workitem:

|--+-Parent 1
   |
   |--+-Child 1
   |  |--Child of Child 1
   |
   |--+-Child 2
   |  |
   |  |--Child of Child 2
   |
   | ...

Result:

  • Child 1
  • Child of Child 1
  • Child 2
  • Child of Child 2

Is this possible?

Thanks, Konrad

Answer

Fenton picture Fenton · Sep 13, 2016

Step 1 - Select "Tree of work items"

Step 2 - Set up the query as usual for the top level work items, for example only "Epic" work items with id 4247 (whatever you like really).

Step 3 - Under "Filters for linked work items" you can exclude descendent items, for example you could show only PBIs, or only bugs etc.

Example Query