我有按 Iteration Path 排序的 TFS/AzureDevOps 查询。我需要按迭代开始日期对其进行排序。我在排序页面或查询页面上没有看到任何选项来进行这样的排序。
我尝试按迭代 ID 排序,但迭代不是按顺序创建的。
WIQL 代码
SELECT
[System.IterationPath],
[Prod.Versions],
[System.Id],
[Prod.Territory],
[Prod.Customer],
[System.Title],
[System.AssignedTo],
[System.State]
FROM workitems
WHERE
[System.TeamProject] = @project
AND [System.WorkItemType] = 'Feature'
AND [Prod.Versions] >= '9.0'
AND [System.IterationPath] <> 'Machine'
AND [System.AreaPath] UNDER 'Machine\Development'
ORDER BY [System.IterationId],
[System.Id]