如何使用工作项目查询语言(WIQL)选择所有列?
我正在尝试从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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正如丹尼尔(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.