如何在查询选项卡中显示从(queryByWiql)检索的工作项列表,而不创建查询

时间:2018-03-06 06:04:41

标签: typescript azure-devops

 var query = {
            query: "SELECT [System.Id] FROM WorkItem WHERE [System.State] NOT IN ('Closed','Completed','Resolved','Removed', 'Done')"
        };

        let workitems: any[];
        let idstring: string = "";

        client.queryByWiql(query, VSS.getWebContext().project.id).then((wi) =>
        {
            workitems = wi.workItems;


            for (let workitemid of workitems)
            {
                idstring = idstring + workitemid["id"] + ","; 
            }

        },
                    (createquery) => {

                    });





    }

idstring包含工作项列表。我必须在查询选项卡中打开这个工作项,我不想创建新的查询

1 个答案:

答案 0 :(得分:0)

不,您无法通过扩展程序在查询标签中显示结果,您可以在工作标签的hub extension中显示结果。