let query = "Select [System.Id], [System.Title], [System.State]
From WorkItems Where [System.WorkItemType] = 'Bug'
order by [Microsoft.VSTS.Common.Priority] asc, [System.CreatedDate] desc";
client.getQuery("DMPLM_TP1", query).then ((wi) => {}, (query) => {});
错误:TF401243:查询选择[System.Id],[System.Title],[System.State]来自WorkItems [System.WorkItemType] ='Bug'顺序由[Microsoft.VSTS.Common.Priority] asc,[ System.CreatedDate] desc不存在,或者您没有权限读取它。
不,您无法创建临时查询,但可以通过queryByWiql函数使用查询字符串检索工作项。
IPromise<Contracts.WorkItemQueryResult> queryByWiql(wiql, project, team)