WIQL中的子请求

问题描述 投票:0回答:1

如何在WIQL TFS中使用子请求?我需要这样的东西

SELECT
    [System.Id]
FROM workitems
WHERE [System.Id] IN (
    SELECT
        [System.Id]
    FROM workitems
    WHERE [System.Title] == 'Example' 
)
tfs wiql
1个回答
0
投票

对不起,目前无法使用此功能。这里已经有相关的用户声音:

TFS:基于其他查询结果的查询

https://visualstudio.uservoice.com/forums/330519-azure-devops-formerly-visual-studio-team-services/suggestions/2300378-tfs-queries-based-on-results-of-other-queries

作为使用TFS查询执行引擎执行子查询或连接的变通方法,您必须使用RunLinkQuery()方法。

有关详细示例,您可以查看此博客:Using the TFS API to display results of a Hierarchical Work Item Query

© www.soinside.com 2019 - 2024. All rights reserved.