在 TFS (MSF Agile) 中,如何在所有子任务关闭的情况下查询活动用户故事?
我目前正在 TFS 2010 上为基于 MSF Agile 的项目编写一系列“健全性检查”查询。
我正在努力进行的搜索如下:
查找所有符合以下条件的用户故事:
- 有子任务(或错误)
- 所有子任务/错误均处于关闭状态
- 父用户故事未关闭
目标是找到应该/可以关闭但尚未关闭的用户故事。
似乎没有办法获取子任务的计数,如果我可以做到这一点,那么我可以搜索“有子任务,并且没有子任务未关闭”。但也许还有另一种方法可以得到我想要的最终结果?
更新:更多信息
到目前为止,我最接近的搜索是:
团队项目 = @Project
工作项类型 = 用户故事
并且状态<>已关闭
以及与下面的查询匹配的链接项
状态<>已关闭
链接过滤器:仅返回没有指定链接的项目
这几乎得到了我想要的东西,但是它返回没有附加任务的用户故事,我不希望包含这些内容。
I'm currently writing a series of "Sanity Check" queries for our MSF Agile based project on TFS 2010.
The search I'm struggling with is the following:
Find all User Stories which:
- Have child tasks (or bugs)
- All child tasks/bugs are in the Closed state
- The parent User Story is not closed
The goal being to find user stories that should/could be closed but are not yet.
There doesn't seem to be a way to get the count of child tasks, if I could do that then I could search for "has child tasks, and no child task is not closed". But perhaps there is another way to get the end result I am after ?
Update: More information
My closest search to this so far is:
Team Project = @Project
And Work Item Type = User Story
And State <> Closed
and linked items that match the query below
State <> Closed
Linking Filter: Only return items that do not have the specified links
This almost gets me what I want, however it returns user stories which have no tasks attached, I do not want those to be included.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先,您需要将查询类型更改为“工作项和直接链接”
在第一个查询中键入以下内容:
Field ------>工作项类型
运算符---> =
值----->用户故事
在作为工作项子项的第二个条件表中,选择您需要的所有条件
已编辑
请参阅下图
First you need to change the type of query to be "work items and Direct Links"
In the first query type the following:
Field ------> Work Item Type
Operator---> =
Value -----> User Story
In the second criteria table which is the child of work items, choose all criteria you need
Edited
See the following image