Wiql azure devops 查询在一段时间内跟踪状态 "Blocked" 中的工作项

Wiql azure devops query to track work items in state "Blocked" during some period

我需要跟踪在特定时间段内处于特定状态的项目。 有wiql:

SELECT
    [System.Id],
    [System.WorkItemType],
    [System.Title],
    [System.AssignedTo],
    [System.State],
    [Custom.Hurdle],
    [Microsoft.VSTS.Common.StateChangeDate],
    [System.IterationPath]
FROM workitems
WHERE
    [System.WorkItemType] = 'User Story'
    AND [System.AreaPath] UNDER 'AREA'
    AND [Microsoft.VSTS.Common.StateChangeDate] >= ITERATION_START_DATE
    AND [System.State] EVER  'Blocked'
    AND [System.IterationPath] = 'ITERATION_NAME'

它 returns 项目曾经处于状态 "Blocked" 以及在特定迭代中的位置。有几个问题: 1.项目可能在几个月前被阻止,一个月前解除阻止并放入特定的迭代,这是不相关的 2. 项目可以更改为状态 "Blocked" 并从特定迭代中删除。 Azure Devops 中是否有任何方法可以检索在特定时间范围内处于某种状态的工作项?

Is there any way in Azure Devops to retrieve work items that were in some state during a particular timeframe?

目前还没有现成的功能支持这种情况。你想要的类似于this example:

State Was Ever Closed
And Closed Date > 7/1/2015
And Closed Date <= 7/21/2015

但是现有字段是Accepted Date, Activated Date, Changed Date, Called Date, Created Date, Resolved Date, Closed Date...,我们没有'Blocked Date'适合您的情况。

所以恐怕你想要的还不支持,因为 Azure Devops 服务不支持 Blocked Date 你的自定义状态 Blocked

您可以在我们的 UserVoice site 上添加对此功能的请求,这是我们提供产品建议的主要论坛。感谢您帮助我们构建更好的 Azure DevOps。

希望它能帮助解决您的难题:)