我需要在 TFS 上的一个项目中找到在过去 2 周内严重性更改为高的所有错误。我只能通过以下查询找到过去 2 周内打开的严重性高的错误:
<?xml version="1.0" encoding="utf-8"?>
<WorkItemQuery Version="1">
<TeamFoundationServer>http://tfs-srv:8080/tfs/defaultcollection</TeamFoundationServer>
<TeamProject>Project</TeamProject>
<Wiql>SELECT [System.Id], [System.WorkItemType], [System.Title], [System.AssignedTo],[System.State] FROM WorkItems WHERE [System.TeamProject] = @project AND [System.WorkItemType] = 'Bug' AND [Microsoft.VSTS.Common.Severity] = 'High' AND [System.CreatedDate] > @today - 14 ORDER BY [System.Id] </Wiql>
</WorkItemQuery>