TFS query for tasks with no parent

Greg Prosch picture Greg Prosch · Feb 23, 2015 · Viewed 16.2k times · Source

I would like create a Flat list of work items query in TFS in which the results contain all of the specified PBI and Bug cases and any Task cases that have no parent.

It's that Task with no parent part that has me perplexed. I cannot see a way that I can do what seems so obvious such as (Parent Link Count = 0) because that attribute is not exposed to me though, strangely, some other link type counts are.

Any ideas?

Answer

Dylan Smith picture Dylan Smith · Feb 23, 2015

You need to change the type of your query to the Direct Links query, then choose the option to pull back all work items without any matching links. The results will still be a flat list.

enter image description here