gpt4 book ai didi

具有类似条件的 TFS WIQL 查询

转载 作者:行者123 更新时间:2023-12-05 04:00:07 26 4
gpt4 key购买 nike

我需要在 IterationPath 字段中使用类似条件在 TFS 2018 上编写一个 WIQL 查询,如下所示:

SELECT
[System.Id],
[System.WorkItemType],
[System.Title],
[System.State],
[System.AreaPath],
[System.IterationPath]
FROM workitems
WHERE
[System.TeamProject] = @project
and [System.IterationPath] LIKE '%MY ITERATION NAME%'
ORDER BY [System.IterationPath] ASC

但我收到错误:

Expecting comparison operator. The error is caused by «LIKE».

我必须如何编写查询?

最佳答案

迭代路径的有效运算符是:

enter image description here

因此您不能使用Like(WIQL 中根本没有Like 运算符)或Contains

最接近的有效运算符是 Under,如果所有迭代都在一个父项下,您将获得所有迭代。

更多信息你可以找到here .

关于具有类似条件的 TFS WIQL 查询,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56665950/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com