WIQL“不包含单词”返回误报

发布于 2025-01-09 03:46:11 字数 858 浏览 4 评论 0原文

我正在运行一个包含以下内容的 WIQL 查询:

"And [Microsoft.VSTS.Common.AcceptanceCriteria] Not Contains Words '*Given*When*Then*'";

我希望它不会返回任何包含字符串“Given”、后跟“When”、后跟“Then”的 AcceptanceCriteria。但是我在结果中收到了这个项目:

"Microsoft.VSTS.Common.AcceptanceCriteria":"<div></div><div><b>Given</b></div><div>Frontier has to submit the replenishment order creation request to Maestro</div><div><b>When</b></div><div>Prophet sends the replenishment order recommendation via REPLENORD feed</div><div><b>Then</b></div><div>Frontier should be able to determine and remove the logic to include the PLANNER_ID&nbsp;/ SCS_ID as mandatory information needed for replenishment order creation</div>"

我使用这个错误吗?

I am running a WIQL query that contains this:

"And [Microsoft.VSTS.Common.AcceptanceCriteria] Not Contains Words '*Given*When*Then*'";

I would expect this to not return any AcceptanceCriteria that contain the string "Given" followed by "When" followed by "Then". However I am receiving this item in the results:

"Microsoft.VSTS.Common.AcceptanceCriteria":"<div></div><div><b>Given</b></div><div>Frontier has to submit the replenishment order creation request to Maestro</div><div><b>When</b></div><div>Prophet sends the replenishment order recommendation via REPLENORD feed</div><div><b>Then</b></div><div>Frontier should be able to determine and remove the logic to include the PLANNER_ID / SCS_ID as mandatory information needed for replenishment order creation</div>"

Am I using this wrong?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

兔小萌 2025-01-16 03:46:11

使用查询运算符包含单词不包含单词使用通配符进行搜索时( *),您只能在部分单词或短语的末尾使用通配符。

在您的情况下,您设置的表达式 (*Given*When*Then*) 显然不遵守此限制。所以,这是一个错误的表达。

有关更多详细信息,您可以参阅 本文档

When using the query operators Contains Words or Does Not Contain Words to search with the wildcard character (*), you can only use the wildcard character at the end of a partial word or phrase.

In your case, the expression you set (*Given*When*Then*) obviously does not obey this restriction. So, it is a wrong expression.

For more details, you can see this document.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文