0

因此,我正在尝试编写一个查询,该查询将向我显示已完成的错误、已完成的 PBI,这些错误是在同一个 sprint 中处理的。换句话说,我们引入了新功能的错误,但在完成迭代之前也关闭了。

问题是对迭代路径的硬引用。我想要的是像@ThisIteration 这样的变量,我会将它放在两个突出显示的位置。这样我就可以一直返回在迭代中解决的所有错误和 PBI。

我认为这在 TFS 查询中不存在,所以我正在寻找解决方法或聪明的解决方案,如 WIQL 等。

谢谢,德文

在此处输入图像描述

4

1 回答 1

1

Based on your requirement: "write a query that will show me completed bugs, of completed PBIs, that were handled within the same sprint"

The query you created should works. For the Iteration Path we can only use the macro @CurrentIteration in on-premise TFS. In VSTS you can use the @CurrentIteration +/- n to offset the iteration. Please see Query macros or variables and Query for items based on a sliding window of team iterations for details.

Note

Feature availability: The @CurrentIteration +/- n macro is supported for VSTS only, and only when run from the web portal.

Besides, you need to adjust/modify the query based on the Bugs working as.

  • If Bugs are managed with requirements, then the Bugs and PBIs are in the same level. So you can use Board Column field to filter...
  • If Bugs are managed with tasks, then the Bugs and PBIs are not in the same level. Filter by Board Column will not work. So you need to use State field to filter...

WIQL would be the same...

enter image description here

于 2018-08-31T08:19:23.200 回答