TFS Query to get EPICs closed but any of the related Feature or User Story or Task not closed

主宰稳场 提交于 2019-12-11 14:17:00

问题


Need a TFS Query to get EPICs in closed state but any of the related Feature or User Story or Task not closed. Even it should work if Feature closed but User story or Task not closed. User story closed but task not closed.

Can it be done with single TFS Query in TFS 2013?

I am able to Get Features closed with User story not closed (or) User story closed but Task still not closed through TFS query.

Can i do above EPIC (Closed) -> Feature (<> Closed) -> User Story (<>Closed) -> Task (<>Closed) in single TFS query?


回答1:


I am able to get the data using below Query.

Used 'Work Items and direct links' type Query.

Top level work items: Work Item Type 'In' Feature,User Story AND Area & Iteration path. AND State = Closed

Filters for linked Work items: Work Item Type 'In' User Story,Task AND State <> Closed

Filter options: Only return items that have matching links Return selected link types: Child

I am able to achieve data for Feature (Closed) -> User Story (<>Closed) -> or Task (<>Closed) & User Story(Closed) but Task (<>Closed) & Feature(Any status).

Will try to use for more levels.




回答2:


No, it's not able to do this.

First all of all, you need to use the tree query (by select Tree of work items) to view a multi-tiered, nested list of work items.

To find linked children, you need to select Match top-level work items first. This is the closest query.

However, as you already point out. This query will judge all child work items if it's closed or not. Will return those child work items which not closed. Kind of

EPIC (Closed) -> Feature (<> Closed) -> or User Story (<>Closed) -> or Task (<>Closed)

But what you need is actually:

EPIC (Closed) -> Feature (<> Closed) -> and User Story (<>Closed) -> and Task (<>Closed)

If a child work item of the whole tree is closed then not return the tree.

This is not available in single TFS query.



来源:https://stackoverflow.com/questions/58838074/tfs-query-to-get-epics-closed-but-any-of-the-related-feature-or-user-story-or-ta

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!