TFS WIQL - 使用 TFS API 和 C# 按关键字搜索

发布于 2024-12-26 03:48:32 字数 301 浏览 5 评论 0原文

快速语法问题:我可以使用其他几个子句很好地返回 TFS 项目,但我需要按特定关键字进行搜索。查询如下:

WorkItemCollection results = wis.Query("SELECT [System.Id] FROM WorkItems WHERE [System.WorkItemType] = 'Dev Bug' AND [System.Keywords] = 'constellation'");

System.Keywords有问题,这部分子句不正确。但我在任何地方都找不到正确的语法。请帮忙!!

Quick syntax question: I can return TFS items just fine using several other clauses, but I need to search by specific keyword. Query below:

WorkItemCollection results = wis.Query("SELECT [System.Id] FROM WorkItems WHERE [System.WorkItemType] = 'Dev Bug' AND [System.Keywords] = 'constellation'");

System.Keywords is the problem, this part of the clause is not correct. But I cannot find the right syntax anywhere. Help please!!

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

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

发布评论

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

评论(1

ペ泪落弦音 2025-01-02 03:48:32

将来,如果您遇到不确定工作项字段名称的情况。您可以连接到 TFS 数据库,打开团队项目集合数据库并查看字段表。

例如,[Tfs_DefaultCollection].[dbo].[Fields]。这将显示字段名称、参考名称、字段 ID 等。

In future, if you run into a situation where you aren't sure about the name of the work item field. You can connect to the TFS database, open the team project collection database and look at the fields table.

Lets say for example [Tfs_DefaultCollection].[dbo].[Fields]. This will show you the field name, reference name, field Id, etc.

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