I'm using the below query to provide me burndown data to be used by a chart -
from: Timebox
select:
- Name
- Workitems.ToDo.@Sum
where:
BeginDate: 2014-01-30T00:00:00.000000
Schedule.ScheduledScopes.Name: My Project Name
asof: 2014-01-30
---
from: Timebox
select:
- Name
- Workitems.ToDo.@Sum
where:
BeginDate: 2014-01-30T00:00:00.000000
Schedule.ScheduledScopes.Name: My Project Name
asof: 2014-01-31
---
....
And the big query is formed by attaching the individual queries with the asof date incrementing until the present date.
The data from this query is way off from the report shown in Version One. So what am I doing wrong?
I want the data from this query in this format so it can be charted by d3js -
[{'date': '30-Jan-14', 'todo': 980},
{'date': '31-Jan-14', 'todo': 2632},
{'date': '03-Feb-14', 'todo': 3778},
{'date': '04-Feb-14', 'todo': 3716},
{'date': '05-Feb-14', 'todo': 3620},
{'date': '06-Feb-14', 'todo': 3354},
{'date': '07-Feb-14', 'todo': 2965},
{'date': '10-Feb-14', 'todo': 2752},
{'date': '11-Feb-14', 'todo': 2266}]