我们试图通过从 Azure Devops 获取数据来在我们的应用程序中绘制燃尽图。我们使用 OData API 和 WorkItemSnapshot 来提取 sprint 中每一天的数据。这是 OData 查询:
https://analytics.dev.azure.com/{organization}/{project}/_odata/v3.0-preview/WorkItemSnapshot?
$apply=filter(
Teams/any(d:d/TeamName eq 'TeamName')
and Iteration/IterationName eq 'IterationName'
and DateValue ge Iteration/StartDate
and DateValue le Iteration/EndDate
)
/groupby(
(DateValue,Area/AreaPath,Iteration/IterationPath,AreaSK,Iteration/StartDate,Iteration/EndDate),
aggregate(RemainingWork with sum as TotalRemainingWork,CompletedWork with sum as SumOfCompletedWork)
)
这将返回 sprint 每一天的剩余和已完成的工作。但是我想从返回的数据中删除非工作日,例如:周六和周日以及其他假期。有什么方法可以查询 Azure Devops 以仅返回 sprint 中工作日的数据。
因为这可以在 Azure Devops Burndown 图表中实现。我认为应该有一些标志或 API 来获取这些数据。