我可以在 "tree of work items" 类型的 TFS 查询中隐藏没有 children 的 parents 吗?

Can I hide parents with no children in a TFS query of the "tree of work items" type?

正如标题所说,我有一个“工作项树”查询,它显示所有 parent 个具有特定 State 的工作项(“计划”)(这里:Closed) 及其各自的 children not closed,所以它看起来像这样:

Parent 1 [Closed]
    Child 4 [New]
    Child 5 [Active]
Parent 2 [Closed]
Parent 3 [Closed]
    Child 2 [Ready]
    Child 4 [Active]

如何过滤掉没有任何匹配children的parent个工作项? IE。 Parent 2 不应显示为查询结果。

您可以使用工作项和直接链接类型的查询而不是工作项树

见下图:没有任何匹配子项的用户商店将被过滤掉。