Guenov Labs

JQL examples: 30 queries you'll actually use

· Andrey Guenov

The opening page of a sixteenth-century writing manual: a block of ornate German script with long flourished strokes, alone on an aged page.
Writing Book (Eine Gute Ordnung und kurtze unterucht' [sic]) (1538–41), Johann Neudörffer the Elder (German, Nuremberg 1497–1563 Nuremberg). plates: etching, some hand colored, manuscript. The Metropolitan Museum of Art, CC0 Public Domain Designation.

A working reference of JQL queries grouped by intent: your own work, recent activity, reporting periods, stale and stuck issues, sprint queries, and text search. Each one is native Jira Cloud JQL with a plain explanation of what it returns and which part to change for your situation.

JQL is the difference between clicking around Jira and asking it a question. This is a working reference — queries grouped by what you're actually trying to find, each one ready to copy and adapt. If you'd rather assemble one clause by clause, the JQL query builder does the same job interactively.

Replace ABC with your project key throughout.

Your own work

1. Everything assigned to me

assignee = currentUser()

2. My open work only

assignee = currentUser() AND statusCategory != Done

statusCategory groups statuses into To Do, In Progress and Done, so this survives custom workflow names.

3. My work, most urgent first

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

4. Things I reported and are still open

reporter = currentUser() AND statusCategory != Done

5. Unassigned work in my project

project = ABC AND assignee IS EMPTY AND statusCategory != Done

Recent activity

6. Updated in the last week

project = ABC AND updated >= -7d ORDER BY updated DESC

7. Created in the last week

project = ABC AND created >= -7d ORDER BY created DESC

8. Completed in the last week

project = ABC AND status CHANGED TO Done AFTER -7d

CHANGED TO ... AFTER looks at the history rather than the current state, so it catches things that moved and then moved again.

9. Resolved in the last week

project = ABC AND resolved >= -7d ORDER BY resolved DESC

10. Everything that moved status yesterday

project = ABC AND status CHANGED AFTER -1d

Reporting periods

11. This week so far

project = ABC AND updated >= startOfWeek()

12. Last full month

project = ABC AND created >= startOfMonth(-1) AND created < startOfMonth()

13. Today's activity

project = ABC AND updated >= startOfDay()

14. Completed this quarter (adjust dates)

project = ABC AND resolved >= "2026/10/01" AND resolved <= "2026/12/31"

Stale and stuck work

15. In progress but untouched for two weeks

project = ABC AND statusCategory = "In Progress" AND updated <= -14d

The single most useful query on this list for spotting silently stalled work.

16. Open for more than 90 days

project = ABC AND statusCategory != Done AND created <= -90d ORDER BY created ASC

17. Overdue

project = ABC AND duedate < now() AND statusCategory != Done

18. Due in the next week

project = ABC AND duedate >= now() AND duedate <= 7d AND statusCategory != Done

19. No due date set

project = ABC AND duedate IS EMPTY AND statusCategory != Done

20. Was blocked at some point in the last month

project = ABC AND status WAS "Blocked" AFTER -30d

Filtering by type and attributes

21. Bugs only, still open

project = ABC AND issuetype = Bug AND statusCategory != Done

22. High priority open work

project = ABC AND priority IN (Highest, High) AND statusCategory != Done

23. By label

project = ABC AND labels = "client-facing"

24. Multiple projects at once

project IN (ABC, DEF, GHI) AND statusCategory != Done

25. Excluding a project

project NOT IN (ABC) AND assignee = currentUser()

26. Issues with no label

project = ABC AND labels IS EMPTY

Sprints and boards

27. Current sprint work

project = ABC AND sprint IN openSprints()

28. Current sprint, not yet done

project = ABC AND sprint IN openSprints() AND statusCategory != Done

29. Upcoming sprints

project = ABC AND sprint IN futureSprints()

30. Summary or description contains a phrase

project = ABC AND text ~ "payment gateway"

~ is the contains operator. text searches across summary, description and comments; use summary ~ "..." to search titles only.

The syntax, briefly

Operators: = != > < >= <= for comparison, IN / NOT IN for lists, ~ for contains, IS EMPTY / IS NOT EMPTY for presence.

History operators: WAS, WAS NOT, CHANGED look at an issue's past rather than its present — combined with AFTER, BEFORE, DURING, FROM and TO.

Relative dates: -7d (seven days ago), -2w, -1h, -30m. Positive values point forward: duedate <= 7d.

Date functions: now(), startOfDay(), endOfDay(), startOfWeek(), startOfMonth(), startOfYear() — each accepts an offset, so startOfMonth(-1) is the start of last month.

Combining: AND, OR, NOT, with parentheses for grouping. ORDER BY field ASC|DESC at the end, and you can sort by several fields.

Quoting: wrap values containing spaces in double quotes — status = "In Progress".

Two habits worth having

Save the queries you run twice. A saved filter can drive a board, a dashboard gadget, an automation lookup, and a subscription. The queries above become considerably more useful once they're filters rather than things you retype.

Prefer statusCategory to status for anything generic. Status names vary between projects and get customised; the three categories don't. Queries written against statusCategory keep working when someone renames a workflow step.


I'm Andrey. I build small, focused apps for Jira at Guenov Labs, and I write about getting information out of Jira efficiently.

FAQ

What is JQL?
JQL is Jira Query Language, the search syntax used in Jira's advanced issue search. A query combines fields, operators and values — for example project = ABC AND status = Done — to return a precise set of issues. It powers advanced search, saved filters, board filters, dashboard gadgets and automation lookups.
How do I find issues updated in the last week in Jira?
Use a relative date: updated >= -7d returns everything modified in the last seven days. Combine it with a project clause and a sort, for example project = ABC AND updated >= -7d ORDER BY updated DESC, to see your project's recent activity newest first.
How do I find issues assigned to me in Jira?
Use the currentUser() function: assignee = currentUser() returns your issues wherever you are signed in. Add a status filter such as AND statusCategory != Done to exclude completed work, which is usually what you want.

Related posts