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包含工作项列表。我必须在查询选项卡中打开这个工作项,我不想创建新的查询