获取 TFS 中特定父项的子工作项 [英] Get child work items for a specific parent in TFS

查看:37
本文介绍了获取 TFS 中特定父项的子工作项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 TFS 中获取特定父级的子工作项?我需要一个平面列表,它将父 ID 作为查询参数并返回子工作项.

How to get child work items for a specific parent in TFS? I need a Flat List which takes a parent ID as a query parameter and returns the child work items.

注意:到目前为止,我只能使用工作项和直接链接"查询来执行此操作.

Note: Till now I'm able to to do this only with the 'Work Items and Direct Links' query.

推荐答案

我们不能通过工作项目的平面列表"查询来实现,因为没有字段/条件来查询,我们可以使用工作树"项目":

We cannot achieve that by "Flat list of work items" query as there ins't the fields/condition to query that, we can use "Tree of work items":

  1. 选择工作项树"
  2. 为顶级工作项设置查询,用户故事",id 105 例如这里(见下面的截图,只需指定工作项ID在这里).
  3. 链接工作项的过滤器"下,您可以排除后代项,或指定 工作项类型,仅作为示例显示TaskBug,只需在Task,Bug中设置Work Item Type,或者保留为[Any],它将返回所有类型的子工作特定父级的项目.
  4. 过滤器选项:首先匹配顶级工作项,树类型:父/子
  1. Select "Tree of work items"
  2. Set up the query for the top level work items, "User Story" with id 105 for example here (See below screenshot, just specify the Parent work item ID here).
  3. Under "Filters for linked work items" you can exclude descendent items, or specify the Child work item types, for example only show Task and Bug, just set Work Item Type in Task,Bug, or leave it as [Any], it will returns all the types of child work items for the specific Parent.
  4. Filter options : Match top-level work items first, Type of tree : Parent/Child

这篇关于获取 TFS 中特定父项的子工作项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆