如何使用工作项目查询语言(WIQL)选择所有列?

发布于 2025-01-29 11:59:35 字数 113 浏览 2 评论 0原文

我正在尝试从Azure DevOps项目中导出所有工作项目和相关数据。我正在使用工作项目查询语言(WIQL),但没有运气。

选择 * 来自...等

不起作用。有什么答案,思想或建议吗?

I am trying to export all work items, and related data, from an Azure DevOps project. I am using Work Item Query Language (WIQL) but have no luck.

SELECT *
FROM... etc

Does not work. Any answers, thoughts, or suggestions?

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

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

发布评论

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

评论(1

夜司空 2025-02-05 11:59:35

正如丹尼尔(Daniel)提到的那样,我们不能在Wiql中使用通配符,它​​不像SQL。

我们必须对字段的友好名称或参考名称进行特定,以返回相应的值。参见限制Wiql长度有关详细信息。

实际上,在一般产品方案中,并非所有字段都需要所有字段,并且WIQL具有长度限制。但是,如果要选择所有字段,则可以通过调用 fields-列表 REST API,然后在您的WIQL中指定它们。

As Daniel mentioned, we cannot use wildcards in WIQL, it's not like SQL.

We have to specific either the friendly name or reference name of the fields to return the corresponding values. See Limits on WIQL length for details.

Actually, not all fields are required in general product scenarios, and the WIQL has the length limits. However, if you want to select all fields, then you can try to get all the available fields by calling Fields - List REST API, then specify them in your WIQL.

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