We are trying to plot a burndown chart in our application by fetching data from Azure Devops. We are using OData API and WorkItemSnapshot to pull the data for each day in the sprint. Here is the OData Query :
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)
)
This returns the remaining and the completed work for each day of the sprint.However I want to remove the non-working days eg: Saturday and Sunday and other holidays from the returned data. Is there any way to query Azure Devops to return only data for the Working Days in a sprint.
Since this is achievable in Azure Devops Burndown chart.I think there should be some flag or API to get this data.