Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我只想选择在过去 14 天内已更改并带有一些特定评论的工作项。像这样的东西:
SELECT [System.Id] FROM workitems WHERE [System.History] CONTAINS WORDS 'Tyry-pyry' ASOF @today - 14
更新
对于特定的文件,我们没有这种对编辑日期的操作,例如system.history.
system.history
查询或 wiql 没有这样的内置功能。
您可能必须首先使用查询[System.History] CONTAINS WORDS 'Tyry-pyry'来列出历史记录中包含此类单词的所有工作项。
[System.History] CONTAINS WORDS 'Tyry-pyry'
然后使用 Rest API 查询以上所有工作项的详细历史信息。使用条件语句或将其导出到 excel 中以过滤包含在 14 天内添加的单词“Tyry-pyry”的评论的时间。
您可以进入查询 - >新建并制作这样的过滤器