Использование функции queryById()
или queryByWiql()
в TFS / WorkItemTracking / RestClient для извлечения рабочих элементов через Query.
Например:
witClient.queryById('7633dab2-89e4-4da9-b03d-a16728ab71c5', projectId)
.then(function (workitemResult) {....})
query = {
query: "SELECT [System.Id] "
+ "FROM WorkItem WHERE [System.WorkItemType] = 'Feature' "
+ "AND [System.State] NOT IN ('Closed','Completed','Removed','Done') "
+ "AND [System.TeamProject] = @project"
};
witClient.queryByWiql(query, projectId, allteams[0].id).then(function (result) {
console.log(result);
});