I used the function closedSprints() to get the closed items and used pagination to get all the closed items. Then filtered it with sprint number. It returned 80 items for sprint 4. In JIRA Sprint report for sprint 4, it was 89 stories. When I verified those extra 9 from sprint report they were spill over from sprint 1,2,3 and were closed in sprint 4. But these stories were not present in ClosedSprint() query in sprint 4, but in sprint2, or sprint 3.
How to tackle this mismatch. I used PowerBI to write queries. I dont want to use JIRA Connectors as it is against company policy.
I want to write power Query which extracts closed, spilled over stories for a sprint and accurately matched with Sprint Report data, using Power BI Desktop and JIRA Rest APIs.