【问题标题】:VSTS: How to query for work items that were not changed in the last 'x' daysVSTS:如何查询在过去“x”天内未更改的工作项
【发布时间】:2019-02-08 03:21:20
【问题描述】:

我需要找到过去“x”天内从未接触过或至少未更改的所有工作项。

使用“更改日期”

理想情况下,我希望有这样的查询

And "Changed Date" < "Today -x"
Or "Changed Date" = "Created Date"

但这不起作用。它不会抱怨查询不正确,但它不起作用。我正在 VSTS 查询编辑器中尝试。

有什么想法吗?

【问题讨论】:

    标签: azure-devops wiql


    【解决方案1】:

    我找到了解决办法,查询是

    And "Created Date" < @Today
    And "Changed Date" = [Field] "Created Date"
    

    这里重要的是“= [Field]”运算符,它允许您比较两个字段。

    【讨论】:

      猜你喜欢
      • 2011-07-07
      • 1970-01-01
      • 1970-01-01
      • 2017-02-03
      • 1970-01-01
      • 2015-06-20
      • 1970-01-01
      • 2019-03-14
      • 2011-02-02
      相关资源
      最近更新 更多