JQL function
closedSprints() in JQL: syntax and examples
closedSprints() stands for every sprint that has been completed. Use it with the sprint field to review past sprints, to find work that was carried over, or to separate history from the current plan.
Syntax
c
l
o
s
e
d
S
p
r
i
n
t
s
(
)
Works with
- Fields: Sprint
- Operators: IN, NOT IN
- Not with: =, !=, ~, !~, >, >=, <, <=, IS, IS NOT, WAS, WAS IN, WAS NOT, WAS NOT IN, CHANGED
Examples
sprint in closedSprints()Every work item that belongs to at least one completed sprint. The base query for sprint history reports.
Run on Jira Cloud on .
sprint in closedSprints() AND statusCategory != DoneWork that sat in a finished sprint and is still not done. These are the leftovers the team has to re-plan.
Run on Jira Cloud on .
sprint in closedSprints() AND sprint in openSprints() ORDER BY updated DESCWork carried over from a finished sprint into a sprint that is running now, most recently touched first. Good material for a retrospective on spillover.
Run on Jira Cloud on .
project = WEB AND sprint in closedSprints() AND resolution = UnresolvedUnresolved WEB work with a sprint history, to check that nothing slipped through when a sprint was closed.
Run on Jira Cloud on .
project = WEB AND sprint not in closedSprints() AND statusCategory != DoneOpen WEB work that has never been in a completed sprint, so nobody has failed to finish it yet.
Run on Jira Cloud on .
Pitfalls
- The equals sign does not work.
sprint = closedSprints()fails with "Operator '=' does not support the list value 'closedSprints()' for field 'sprint'". UseIN. The same holds for~. - A work item can belong to a completed sprint and a current one at the same time, as the Atlassian docs say.
sprint in closedSprints()therefore also lists work that is moving along in the active sprint. sprint not in closedSprints()does not match work that is in no sprint at all. A project can hold plenty of backlog items with an empty sprint field and still get nothing from a NOT IN query on sprints (checked on Jira Cloud, November 2026).- Only completed sprints count. A sprint that was started but not closed belongs to
openSprints().
Ready-made queries
Questions and answers
How do I find unfinished work from past sprints in Jira?
Use sprint in closedSprints() AND statusCategory != Done. Add a project clause to narrow it to one team.