我需要获取 Azure DevOps 分析的快照,它可以为我提供在 sprint 计划日期预测的小时数。如果可能,按父 ID 分组。
我还需要第二个视图,按活动分组,但从第一个开始,我相信我可以达到第二个。
下面是一个尝试性的咨询,但效果并不好。它返回一条我无法理解原因的错误消息。
https://analytics.dev.azure.com/{org}/{project}/_odata/v3.0-preview//WorkItemSnapshot?$filter=(DateValue ge Iteration/StartDate and DateValue le Iteration/StartDate and WorkItemType eq 'Task')/groupby((Activity), aggregate($count as Count, RemainingWork with sum as WorkTotal))
错误:
{"error":{"code":"0","message":"VS403483: URI 中指定的查询无效:')' 或 ',' 预期在 '(DateValue ge Iteration/StartDate 中的位置 136和 DateValue le Iteration/StartDate and WorkItemType eq 'Task')/groupby((Activity), aggregate($count as Count, RemainingWork with sum as RemainingWorkTotal))'..","innererror":{"message":"' )' 或 ',' 预期在 '(DateValue ge Iteration/StartDate and DateValue le Iteration/StartDate and WorkItemType eq 'Task')/groupby((Activity), aggregate($count as Count, RemainingWork with sum as RemainingWorkTotal ))'.","type":"Microsoft.OData.ODataException","stacktrace":""}}}
为了满足我的需要,我需要获取下图中以黄色突出显示的值: