# closedSprints() in JQL: syntax and examples

URL: https://goingstellar.ro/reference/jql/closedsprints/

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 2026-11-29.

```
sprint in closedSprints() AND statusCategory != Done
```

Work 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 2026-11-29.

```
sprint in closedSprints() AND sprint in openSprints() ORDER BY updated DESC
```

Work 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 2026-11-29.

```
project = WEB AND sprint in closedSprints() AND resolution = Unresolved
```

Unresolved WEB work with a sprint history, to check that nothing slipped through when a sprint was closed. Run on Jira Cloud on 2026-11-29.

```
project = WEB AND sprint not in closedSprints() AND statusCategory != Done
```

Open WEB work that has never been in a completed sprint, so nobody has failed to finish it yet. Run on Jira Cloud on 2026-11-29.

## Pitfalls

- The equals sign does not work. `sprint = closedSprints()` fails with "Operator '=' does not support the list value 'closedSprints()' for field 'sprint'". Use `IN`. 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

- [Carried over from a closed sprint](https://goingstellar.ro/tools/jql-examples/#carried-over)

## 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.

## Related

- [openSprints()](https://goingstellar.ro/reference/jql/opensprints/)
- [futureSprints()](https://goingstellar.ro/reference/jql/futuresprints/)
- [sprint](https://goingstellar.ro/reference/jql/sprint-field/)
- [NOT IN](https://goingstellar.ro/reference/jql/not-in-operator/)
- [IN](https://goingstellar.ro/reference/jql/in-operator/)
- [EMPTY](https://goingstellar.ro/reference/jql/empty-keyword/)

## Sources

- [JQL functions (Atlassian Support, Jira Cloud)](https://support.atlassian.com/jira-software-cloud/docs/jql-functions/)
- [JQL fields (Atlassian Support, Jira Cloud)](https://support.atlassian.com/jira-software-cloud/docs/jql-fields/)

