---
title: "JQL cheat sheet: examples you can copy"
description: "Free JQL cheat sheet that runs in your browser: 36 Jira searches for overdue work, due dates, unassigned issues and sprints. Set your project and days once and every query updates. Each was run on a real Jira Cloud site."
lang: en
canonical: https://goingstellar.ro/tools/jql-examples/
type: free web tool
price: 0
publisher: GOING STELLAR S.R.L.
alternate_ro: https://goingstellar.ro/ro/unelte/exemple-jql/
---

> Use the tool (runs in your browser, nothing is uploaded): <https://goingstellar.ro/tools/jql-examples/>

# JQL cheat sheet: examples you can copy

36 Jira Query Language searches for the questions teams ask every week: what is overdue, what is due soon, what has no owner, what is in the sprint. Set your project and the number of days once, and every query updates. Each one was run on a real Jira Cloud site.

## Due dates and overdue work

Deadliner, our app, turns these searches into reminders: it comments on the work item before it is due and once when it is overdue, per due date, and can email the project lead a daily digest. [See Deadliner](https://goingstellar.ro/go/atl-deadliner/?a=jql-examples-due-dates) or read [how to find overdue work and who gets notified](https://goingstellar.ro/methods/jira-overdue-issues-jql-and-notifications/).

### Overdue work items

```
duedate < startOfDay() AND statusCategory != Done ORDER BY duedate ASC
```

Open items whose due date is before today, oldest first. `statusCategory != Done` keeps every not-done status, whatever your workflow calls it.

### Due today

```
duedate = startOfDay() AND statusCategory != Done
```

The due date is a date without a time, so it equals the start of today.

### Due in the next N days

```
duedate >= startOfDay() AND duedate <= endOfDay("+7d") AND statusCategory != Done ORDER BY duedate ASC
```

From today up to and including the day N days from now. Change N above.

### Due this week

```
duedate >= startOfWeek() AND duedate <= endOfWeek() AND statusCategory != Done
```

The current calendar week.

**Watch out:** Jira starts the week on Sunday unless an admin turns on ISO 8601 for the date picker in Look and feel settings. To start on Monday regardless, use `startOfWeek("+1d")` and `endOfWeek("+1d")`.

### Open work with no due date

```
duedate is EMPTY AND statusCategory != Done
```

Work that no deadline report or reminder will ever catch, because there is no date to compare.

### Overdue and unassigned

```
duedate < startOfDay() AND assignee is EMPTY AND statusCategory != Done
```

The riskiest list: late, and nobody's name on it.

## Assignee and reporter

### Unassigned open work

```
assignee is EMPTY AND statusCategory != Done ORDER BY created ASC
```

Use `is EMPTY`, not `= ""`. `EMPTY` and `NULL` mean the same.

### My open work

```
assignee = currentUser() AND statusCategory != Done ORDER BY duedate ASC, priority DESC
```

`currentUser()` is whoever runs the search, so one shared filter works for everyone.

### Open work I reported

```
reporter = currentUser() AND statusCategory != Done
```

Items you raised that are not done yet, whoever they are assigned to.

### Open work not assigned to me

```
(assignee not in (currentUser()) OR assignee is EMPTY) AND statusCategory != Done
```

Everything else in the project, including items with no assignee.

**Watch out:** `NOT IN` and `!=` never match an empty field. Without `OR assignee is EMPTY`, every unassigned item silently drops out.

## Sprints

### Current sprint

```
sprint in openSprints() ORDER BY rank ASC
```

Items in any sprint that has started and is not completed. `openSprints()` works only with `in` and `not in`.

### Still open in the current sprint

```
sprint in openSprints() AND statusCategory != Done ORDER BY rank ASC
```

What is left to finish before the sprint ends.

### Backlog: open work in no sprint

```
sprint is EMPTY AND statusCategory != Done
```

Items that are not planned into any sprint yet.

### Carried over from a closed sprint

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

Items that were in a completed sprint and are now in the current one, not done yet. An item keeps every sprint it was in.

### Planned for a future sprint

```
sprint in futureSprints()
```

Items already placed in a sprint that has not started.

## Created, updated, resolved

### Created in the last N days

```
created >= -7d ORDER BY created DESC
```

`-7d` means seven days before now, to the minute, not since midnight. For whole days use `created >= startOfDay("-7d")`.

### Updated today

```
updated >= startOfDay() ORDER BY updated DESC
```

Any change counts as an update: a comment, a field, a transition.

### Stale: open and not updated in N days

```
updated <= -7d AND statusCategory != Done ORDER BY updated ASC
```

Candidates for a backlog clean-up. Set N to 30 or 90.

### Resolved last week

```
resolved >= startOfWeek("-1w") AND resolved < startOfWeek()
```

From the start of last week up to the start of this one.

### Created this month

```
created >= startOfMonth() ORDER BY created DESC
```

`startOfMonth("-1")` with `created < startOfMonth()` gives last month.

## Status history

### Moved to Done in the last N days

```
status changed to Done after -7d
```

Uses the history of the field, so it finds items that went to Done even if they were reopened since. Write the status name your workflow uses.

### Reopened: was Done, open again

```
status was Done AND statusCategory != Done
```

`was` checks whether the field ever had that value.

### Once mine, now someone else's

```
assignee was currentUser() AND assignee != currentUser()
```

Handy after a hand-over.

**Watch out:** `assignee != currentUser()` leaves out items that are now unassigned. Add `OR assignee is EMPTY` in brackets if you want them too.

## Text and labels

### Summary contains words

```
summary ~ "login"
```

`~` is a word search, not a substring: every word must appear, in any order. Jira also matches forms of a word, so `customize` finds `customized`.

**Watch out:** Common words such as *in*, *the*, *not* or *will* are left out of the search. On our test site, `summary ~ "sign in"` also matched “QA sign-off”, because only *sign* was searched. A Jira admin can change this by setting the indexing language to Other.

### Summary contains an exact phrase

```
summary ~ "\"login\""
```

Escaped quotes inside the quotes ask for the words next to each other, in that order.

### Text anywhere: summary, description, comments

```
text ~ "login"
```

`text` searches the summary, description, comments and text custom fields together.

### Has a label

```
labels = backend
```

Labels are matched exactly. `labels in (a, b)` matches either.

### Does not have a label

```
labels not in (backend) OR labels is EMPTY
```

Everything without the label, including items with no labels at all.

**Watch out:** Without `OR labels is EMPTY`, items with no labels drop out. On our test site, `labels not in (demo)` returned 4 items and the corrected query 74.

### Open work with no labels

```
labels is EMPTY AND statusCategory != Done
```

Useful before a triage meeting.

## Epics, parents, subtasks, types

### Children of an epic or parent

```
parent = PROJ-1
```

`parent` works for epics and for subtasks. Older guides use `"Epic Link"`, which Atlassian replaced with `parent`.

### Open epics

```
issuetype = Epic AND statusCategory != Done ORDER BY created ASC
```

Every epic that is not done yet.

### Open subtasks

```
issuetype in subtaskWorkTypes() AND statusCategory != Done
```

`subtaskWorkTypes()` covers every subtask type, whatever it is called on your site. The older name `subTaskIssueTypes()` still works.

### Open work without subtasks in the list

```
issuetype in standardWorkTypes() AND statusCategory != Done
```

Standard types only (tasks, stories, bugs, epics), so subtasks do not double the list.

### Open high-priority bugs

```
issuetype = Bug AND priority in (Highest, High) AND statusCategory != Done ORDER BY priority DESC, created ASC
```

Priority names are your site's. These are Jira's defaults.

## Sorting

### Earliest due date first, then priority

```
statusCategory != Done ORDER BY duedate ASC, priority DESC
```

`ORDER BY` always goes last, after the whole condition. Items with no due date come last when sorting in ascending order.

### Most recently updated first

```
statusCategory != Done ORDER BY updated DESC
```

`DESC` for newest first, `ASC` for oldest first.

## How to use these queries

- In Jira, open **Filters** (or the search) and switch to **JQL**, then paste a query. Save it as a filter to reuse it on a board, a dashboard or in a subscription email.
- `statusCategory != Done` means “not finished” in any workflow, because every status belongs to one of three categories: To Do, In Progress and Done.
- The project filter wraps the whole query in brackets, so `OR` inside an example cannot leak out of your project.
- Checked on 29 November 2026 on a Jira Cloud test site with 75 work items in four projects. Every query passed Jira's own validation and ran, and the work items it returned matched exactly the list we worked out from the items' fields and history. Ten returned nothing because they need data our test site does not have, such as sprints, reopened items or high-priority bugs; for those, the check shows that they are valid and run, not that they find the right items.
- Field and status names are Jira's defaults. If your site renamed a status or a priority, use your name.

## Questions and answers

**How do I find overdue issues in Jira with JQL?**

`duedate < startOfDay() AND statusCategory != Done ORDER BY duedate ASC`. It lists every open work item whose due date is before today, oldest first.

**Why does NOT IN leave out some issues?**

`NOT IN` and `!=` never match an empty field. Add `OR field is EMPTY`, for example `labels not in (demo) OR labels is EMPTY`.

**How do I search the current sprint?**

`sprint in openSprints()`. Add `AND statusCategory != Done` for what is left to do.

**What replaced Epic Link in JQL?**

`parent`. Atlassian retired Epic Link in February 2024; old filters still run, but new ones use `parent = KEY-1`.

**Is anything sent to a server?**

No. The queries are built in your browser and your values are kept only in this browser. The “Open in Jira” button is a plain link to your own site.
