What is the SQL query to calculate story points completed in a given sprint and story points not completed (and therefore carried over to the next sprint or moved to the backlog)?
I'm using our Jira database (configured using standard Jira schema implementation) for a PowerBI dashboard in order to maintain historical data. Currently, Jira only allows you to see the Velocity Report for the last 7 sprints, which is a limitation for us.
We want to see velocity over time, but there's an issue with how we are currently pulling this. For example, if there's a story that is committed to in Sprint 14, but doesn't get completed, so therefore gets carried over and completed in Sprint 15, then the "Completed" story points in Sprint 14 gets updated to reflect that change in status even after the sprint has already been closed. Does anyone have recommendations on how to distinguish the story points completed only at the time the sprint gets closed?
Thanks!!