In Jira Align, Kanban team throughput is a calculated value within the UI and is calculated based on the average number of accepted stories in the five previous weeks.
To calculate the throughput value from data in Enterprise Insights, the current_dw.Story and current_dw.Team tables are queried and the records are returned based on the following parameters:
The formula to calculate the throughput is:
COUNT(Accepted story records) / 5 weeks
Below is a sample SQL query that returns Kanban teams and throughput for each team.
SELECT
T.[Team ID]
,T.[Team Name]
,T.[Kanban Team Flag]
,CAST(ROUND(((1.0 * COUNT(S.[Story ID]))/5),0) AS INT) AS [Throughput]
FROM current_dw.Team AS T
INNER JOIN current_dw.Story AS S ON S.[FK Team ID] = T.[Team ID]
WHERE
T.[Kanban Team Flag] = 'Yes' --Filter for Kanban teams
AND ([Date Accepted] BETWEEN DateAdd(WEEK, -5, GETDATE()) AND GETDATE()) --Filter accepted stories in the last 5 weeks from today
AND [Deleted Flag] != 'Yes' -- Remove deleted stories
AND [Canceled Flag] != 'Yes' -- Remove cancelled stories
GROUP BY
T.[Team ID]
,T.[Team Name]
,T.[Kanban Team Flag]
ORDER BY
T.[Team ID]
Sam Tsubota
Senior Product Manager, Enterprise Strategy & Planning
Atlassian
Los Angeles, CA
30 accepted answers
2 comments