Background: One of the performance efficiency metrics for a team is “Spill-over rate”
Definition: The average number of story points that have spilled over to future sprints in all the competed sprints in a given time range.
Formula: Total number of spilled over story points in a given time range / total number of completed sprints in a given time range
Requirement: In order to calculate the above metric, can I think of approaching this through an Automation by introducing a custom field (SpillOverStart)?
Solution Approach:
Trigger: Issue field update (sprint)
Condition: If Issue.statusCategory = "In Progress" and {{issue.sprint.split(“,”).size}} > 1
Action: SpillOverStart = {{issue.sprint.split(“,”).get(1).startDate}} (start date of the 2nd sprint (index 1) in the array)
JQL to be used by the Scrum Master for computing this metric: (export the output to an csv and add up the total story points and divide it by the number of completed sprints)
project = <project_name> and issuetype not in (epic,sub-task) and SpillOverStart is not empty and (SpillOverStart >= "2023-01-01" and SpillOverStart <= "2023-03-31")
I am stuck with the above Action as it is NOT working out. Any leads on where I am going wrong or another way of achieving this will be highly appreciated.