JQL Cheat Sheet: Syntax, All 54 Functions, Tested Examples

On this page
  1. How a JQL query is built
  2. Your own work
  3. Status and resolution
  4. Dates
  5. Text
  6. JQL contains: use ~, there is no CONTAINS
  7. People and teams
  8. Sprints and releases
  9. Epics, parents, subtasks and links
  10. History: WAS and CHANGED
  11. Other fields, spaces and sorting
  12. All 17 operators
  13. Every JQL function, with a query that works
  14. Atlassian’s own examples: 14 of 81 fail as printed
  15. The renamed functions: which work today
  16. Seven traps, tested
  17. Build it without typing
  18. How we tested

A team lead wants to see what everyone else is working on and types assignee != currentUser(). The list looks right. It is short by 56 work items: every one that nobody is assigned to. JQL reads != as “has a value, and the value is not this”, so the empty ones never make it in.

That is the kind of thing this cheat sheet is for. All 67 queries on this page were run on a live Jira Cloud site on 13 November 2026, a test site with 162 work items in 12 spaces, with Jira’s own strict check (/rest/api/3/jql/parse?validation=strict) and a count of what each returned. None of them failed. The traps further down come with the numbers that show them.

On 2 December 2026 we added all 54 JQL functions, each with a query that ran, and pasted every example from Atlassian’s own functions page into the same check: 14 of them fail as printed, on any site.

Short answer: a JQL query is clauses of field, operator, value, joined by AND and OR and sorted with ORDER BY: project = PAY AND statusCategory != Done ORDER BY priority DESC. Use statusCategory for “done or not”, -7d and startOfWeek() for dates, ~ for text, openSprints() for the running sprint. AND is read before OR, != skips empty fields, text search never matches part of a word, and there is no CONTAINS: use ~. When an example from the docs fails, write issue in for work item in and project in for space in.

How a JQL query is built

A query is one or more clauses. Each clause names a field, an operator and a value or a function that returns values. Keywords join the clauses, brackets group them, and ORDER BY comes last.

Diagram of the JQL query project = PAY AND (assignee = currentUser() OR assignee is EMPTY) ORDER BY priority DESC, updated DESC, split into its parts. Field: what to look at, such as project, status, due, sprint or Team. Operator: how to compare, such as = != > < ~ in is was changed, 17 in all. Value or function: PAY, In Review, -7d, currentUser(), openSprints(), EMPTY. Keyword: AND, OR and NOT join or flip clauses, ORDER BY sorts. Below: AND is read before OR, so statusCategory = Done AND (priority = High OR priority = Highest) found 4 work items and the same query without brackets found 13. Sources: Atlassian JQL reference pages and our Jira Cloud test site.

Three rules save most of the debugging:

  1. Quote values with spaces or special characters: status = "In Review", labels = "select".
  2. AND binds tighter than OR. statusCategory = Done AND priority = High OR priority = Highest returned 13 items on our site; with brackets around the two priorities, 4.
  3. A query needs at least one condition when an app or a script runs it through the REST API. order by key on its own came back as Unbounded JQL queries are not allowed here. Please add a search restriction to your query.

Your own work

You wantJQL
My open work, most urgent firstassignee = currentUser() AND statusCategory != Done ORDER BY priority DESC, updated DESC
What I reported in the last 30 daysreporter = currentUser() AND created >= -30d
What I watch and is still openwatcher = currentUser() AND statusCategory != Done
Everything I watchissue in watchedIssues()
What I opened recentlyissue in issueHistory() ORDER BY lastViewed DESC
Viewed in the last weeklastViewed >= -7d
Mine or nobody’s in one spaceassignee in (currentUser(), EMPTY) AND project = PAY

issueHistory() returns the work items you opened most recently, up to 50 of them, where Jira’s recent menu shows 5 (Atlassian’s functions page).

Status and resolution

You wantJQL
Not startedstatusCategory = "To Do"
Being worked onstatusCategory = "In Progress"
Not finished, whatever the workflowstatusCategory != Done
Exact statusesstatus in ("In Progress", "In Review")
Not in two statusesstatus not in (Done, Closed)
No resolution setresolution = Unresolved
Done but nobody set a resolutionresolution = Unresolved AND statusCategory = Done
Resolved but reopenedresolution is not EMPTY AND statusCategory != Done

Prefer statusCategory to a list of statuses. Every status belongs to To Do, In Progress or Done, so the query keeps working when someone adds “In Review” or “Released” to the workflow. Every value statusCategory accepts, the ones that fail and which category each default status is in are in our Jira status categories reference.

resolution = Unresolved is not the same as “not done”. On our site it matched 137 items, statusCategory != Done matched 131, and the difference was six items sitting in a Done status (one of them “Released”) with no resolution, because their workflow never sets one. Reports and gadgets that count “unresolved” count those six as open work forever.

Dates

You wantJQL
Created todaycreated >= startOfDay()
Created this weekcreated >= startOfWeek()
Created in the last 7 dayscreated >= -7d
Open and untouched for a monthupdated <= -30d AND statusCategory != Done
Overduedue < now() AND statusCategory != Done
Due this weekdue >= startOfDay() AND due <= endOfWeek()
Open with no due dateduedate is EMPTY AND statusCategory != Done
Resolved last monthresolved >= startOfMonth(-1) AND resolved < startOfMonth()
A fixed quartercreated >= "2026-01-01" AND created < "2026-04-01"

Dates go year first. created > "11/01/2026" failed with Date value '11/01/2026' for field 'created' is invalid. Valid formats include: 'yyyy/MM/dd HH:mm', 'yyyy-MM-dd HH:mm', 'yyyy/MM/dd', 'yyyy-MM-dd', or a period format e.g. '-5d', '4w 2d'. The full story of relative dates, time zones and the startOf and endOf functions is in JQL dates.

Text

You wantJQL
A word in the summarysummary ~ "payment"
An exact phrasesummary ~ "\"duplicate charge\""
Words that start with refundsummary ~ "refund*"
Summary, description and commentstext ~ "timeout"
Only in commentscomment ~ "rollback"
No description at alldescription is EMPTY
Without a wordsummary !~ "test"

Text search works on whole words, after Jira cuts them to a root form (“customize” is stored as “custom”, Atlassian’s text search page explains). What that means in practice, from our tests:

  • summary ~ "pay" found nothing, though one summary says “retry failed payment”. "pay*" found it. A star at the start, "*etry", found nothing.
  • ? stands for one letter: "pay?ent" found the payment item.
  • Common English words are left out of the index. summary ~ "the retry" matched the same three items as "retry". Atlassian’s own example: a search for “VSX will crash” also finds “VSX will not crash”, because “will” and “not” are on the list.
  • A phrase needs inner quotes escaped with a backslash, as in the table.

JQL contains: use ~, there is no CONTAINS

JQL has no CONTAINS operator and no LIKE. On our site summary contains "payment" came back with Error in the JQL Query: Expecting operator but got 'contains'. The valid operators are '=', '!=', '<', '>', '<=', '>=', '~', '!~', 'IN', 'NOT IN', 'IS' and 'IS NOT'. labels contains payments gave the same error, and summary like "pay%" gave 'like' is a reserved JQL word. You must surround it in quotation marks to use it in a query. What to write instead:

You meanJQL
The summary contains a wordsummary ~ "payment"
Contains a word that starts with “pay”summary ~ "pay*"
Any text field contains a wordtext ~ "payment"
Does not contain a wordsummary !~ "test"
Labels contain one of theselabels in (payments, checkout)
The field contains anything at allattachments is not EMPTY

~ works on text fields only (summary, description, comments and text custom fields). For fields that hold a list, such as labels, components and versions, = and IN already mean “the list contains”.

People and teams

You wantJQL
Unassigned and open in one spaceassignee is EMPTY AND project = PAY AND statusCategory != Done
Someone in a groupassignee in membersOf("jira-users-simplify-demo")
I reported it, someone else has itreporter = currentUser() AND assignee != currentUser()
Reassigned this weekassignee changed AFTER -7d
I voted for itvoter = currentUser()
Most votes firstvotes > 0 ORDER BY votes DESC

Put your own group name in membersOf(). A group that does not exist is an error, not an empty result. For the difference between the reporter and the assignee, and why reporter != assignee does not do what it reads like, see Jira reporter vs assignee.

Sprints and releases

You wantJQL
In a running sprintsprint in openSprints()
Planned for a later sprintsprint in futureSprints()
Carried over into the running sprintsprint in closedSprints() AND sprint in openSprints()
Open work in no sprintsprint is EMPTY AND statusCategory != Done AND project = PAY
In versions not released yetfixVersion in unreleasedVersions()
In the next release of one spacefixVersion = earliestUnreleasedVersion(PAY)
Done but in no releasefixVersion is EMPTY AND resolution = Done

openSprints() covers every running sprint the site has, so add project = PAY when you want one team. Previous and next sprint, names and dates, each tested: JQL sprint queries. What counts as “done” at the end of a sprint is in our Jira sprints guide. How the version functions pick “earliest” and “latest” (by the order on the Releases page, not by name or date), tested: Jira fix version.

You wantJQL
Children of one epicparent = PAY-1
Open epicstype = Epic AND statusCategory != Done
All subtaskshierarchyLevel = -1
Subtask types, or the standard onesissuetype in subTaskIssueTypes() / issuetype in standardIssueTypes()
Linked to one work itemissue in linkedIssues("PAY-1")
Blocking one work itemissue in linkedIssues("PAY-1", "is blocked by")
Blocked and still openissueLinkType = "is blocked by" AND statusCategory != Done

hierarchyLevel uses numbers: 1 for epics (the parent level), 0 for stories and tasks, -1 for subtasks. Levels above epic made in Plans are not covered. Grandchildren, "Epic Link" and why some link queries return nothing are in JQL for parents, epics and linked issues.

History: WAS and CHANGED

You wantJQL
Was in progress before this weekstatus WAS "In Progress" BEFORE startOfWeek()
Moved back to To Do in two weeksstatus CHANGED FROM "In Progress" TO "To Do" AFTER -14d
Finished last monthstatus CHANGED TO Done DURING (startOfMonth(-1), endOfMonth(-1))
Ever assigned to meassignee WAS currentUser()
Priority changed this weekpriority CHANGED AFTER -7d

WAS and CHANGED read the history. Atlassian lists six fields for WAS: assignee, fix version, priority, reporter, resolution and status. labels WAS payments failed on our site: Jira answered that history searches do not support the labels field. The predicates (AFTER, BEFORE, DURING, ON, BY, FROM, TO) are covered in JQL WAS and CHANGED.

Other fields, spaces and sorting

Labels, components and other fields

You wantJQL
No labelslabels is EMPTY
Either of two labelslabels in (payments, checkout)
Without a label, unlabelled includedlabels not in (payments) OR labels is EMPTY
No component in one spacecomponent is EMPTY AND project = PAY
With attachmentsattachments is not EMPTY
Stories nobody estimated"Story point estimate" is EMPTY AND type = Story AND statusCategory != Done

Fields with spaces in their names go in quotes. On a company-managed space the field is often "Story Points"; on a team-managed one, "Story point estimate". Both exist on our site. A field can also be named by its ID, cf[10016]. Empty versus 0, and the board that counted 0 of 63 points: Jira story points.

Spaces and permissions

You wantJQL
Spaces I leadproject in projectsLeadByUser()
Spaces where I hold a roleproject in projectsWhereUserHasRole("Administrators")

Sorting

You wantJQL
Board orderproject = PAY ORDER BY Rank ASC
Priority, then oldest firstproject = PAY ORDER BY priority DESC, created ASC

ORDER BY takes several fields, each with ASC or DESC. It changes the order only, not which items match.

All 17 operators

OperatorMeaningExample
=is exactlystatus = Done
!=has a value, and not this onepriority != Low
> >= < <=after or before, more or lessdue < now()
INany of a liststatus in ("To Do", "In Progress")
NOT INnone of a list, empty excludedlabels not in (payments)
~contains wordssummary ~ "refund*"
!~does not contain wordssummary !~ "test"
ISis emptyassignee is EMPTY
IS NOTis not emptyattachments is not EMPTY
WAShad this value at some pointassignee WAS currentUser()
WAS INhad any of these valuesstatus WAS IN ("In Review", QA)
WAS NOTnever had this value (in a period)status WAS NOT Done BEFORE -7d
WAS NOT INnever had any of thesestatus WAS NOT IN (Done, Closed)
CHANGEDthe value changedpriority CHANGED AFTER -7d

IS and IS NOT only take EMPTY (or its synonym NULL). ~ and !~ only work on text fields.

Every JQL function, with a query that works

Atlassian’s functions page lists 54 functions, plus two fields that look like them. A function always stands to the right of an operator: field, operator, function. 20 of the 54 are for Jira Service Management. For each of the other 34 we ran the query below on our site on 2 December 2026; the last column is how many of its 230 work items it found. Swap PAY for your space key.

Dates and times

FunctionQuery that worksFound
now()due < now() AND statusCategory != Done42
startOfDay()created >= startOfDay()0 (today)
startOfWeek()created >= startOfWeek()11
startOfMonth()resolved >= startOfMonth(-1) AND resolved < startOfMonth()43
startOfYear()created >= startOfYear()230
endOfDay()due <= endOfDay("+1")57
endOfWeek()due <= endOfWeek()60
endOfMonth()due <= endOfMonth()75
endOfYear()due <= endOfYear()75
currentLogin(), lastLogin()created > lastLogin()runs

startOfWeek() starts on Sunday and endOfWeek() ends on Saturday unless you add a day: startOfWeek("+1d") is Monday. A number without a unit uses the function’s own period, so startOfMonth(-1) is the first of last month. More on time zones and ranges in JQL dates.

People, spaces and components

FunctionQuery that worksFound
currentUser()assignee = currentUser()22
membersOf()assignee in membersOf("jira-admins-simplify-demo")11
updatedBy()issue in updatedBy("<account ID>", "-7d")36
componentsLeadByUser()component in componentsLeadByUser()0
spacesLeadByUser()project in spacesLeadByUser()0
spacesWhereUserHasRole()project in spacesWhereUserHasRole("Administrators")0
spacesWhereUserHasPermission()project in spacesWhereUserHasPermission("Resolve issues")230

updatedBy() takes a user; we used the account ID, the long string at the end of a profile URL. updatedBy(currentUser()) is a syntax error because a function cannot be the argument of another. It counts a day as the smallest unit. membersOf() stops with an error above 10,000 users and takes a team only by its ID, membersOf("id:<team ID>"). The spaces… functions go with the field project, not space. The zeros above are honest: on our site no component has a lead, and the test account leads no space and holds no Administrators role in one.

Your own lists

FunctionQuery that worksFound
workItemHistory() (issueHistory())issue in workItemHistory()28
watchedWorkItems() (watchedIssues())issue in watchedWorkItems()25
votedWorkItems() (votedIssues())issue in votedWorkItems()0
workItemsWithRemoteLinksByGlobalId()issue in workItemsWithRemoteLinksByGlobalId("abc")0

workItemHistory() returns up to 50 work items you opened, where Jira’s recent menu shows five.

Sprints and versions

FunctionQuery that worksFound
openSprints()sprint in openSprints()23
closedSprints()sprint in closedSprints()13
futureSprints()sprint in futureSprints()14
unreleasedVersions()fixVersion in unreleasedVersions(PAY)1
releasedVersions()fixVersion in releasedVersions(PAY)0
earliestUnreleasedVersion()fixVersion = earliestUnreleasedVersion(PAY)1
latestReleasedVersion()fixVersion = latestReleasedVersion(PAY)0

“Earliest” and “latest” follow the order on the Releases page, not names or dates; the version at the bottom of the list is the earliest. Leave the space out of releasedVersions() and unreleasedVersions() to search every space.

FunctionQuery that worksFound
standardWorkTypes()type in standardWorkTypes()216
subtaskWorkTypes()type in subtaskWorkTypes()14
linkedIssues() (docs: linkedWorkItems())issue in linkedIssues("PAY-4")2
cascadeOption()location in cascadeOption("USA", "New York")needs the field
choiceOption()"Product Version" in choiceOption(123)needs the field
field linkedWorkItemlinkedWorkItem = PAY-112
field parentEpicparentEpic = PAY-112

216 standard plus 14 subtasks is all 230. cascadeOption() and choiceOption() only work on a custom field of that type (cascading select, or a dropdown searched by option ID), so the queries follow Atlassian’s examples; our site has no such field. linkedWorkItem and parentEpic only work in company-managed spaces. Children, grandchildren and links are in JQL for parents, epics and linked issues.

Jira Service Management only

ForFunctionsExample
Approvals (8)approved(), approver(), myApproval(), myPending(), myPendingApproval(), pending(), pendingBy(), pendingApprovalBy()approvals = myPendingApproval()
SLAs (7)breached(), everBreached(), completed(), paused(), running(), remaining(), withinCalendarHours()"Time to Resolution" < remaining("2h")
Customers (3)customerDetail(), organizationDetail(), organizationMembers()organizations in organizationDetail("Region", "APAC")
Entitlements (2)entitlementDetail(), entitlementProduct()entitlement in entitlementProduct("Acme Widget")

The five approval queries without a user ran on our site; the SLA ones answered You must have a licensed service space to run JQL queries on SLAs., because the service licence of our test site had lapsed.

Functions that are not built in

childIssuesOf(), subtasksOf() and the issueFunction field come up a lot in search results. They come from apps such as ScriptRunner. Without one, Jira says Unable to find JQL function 'childIssuesOf(PAY-1)'. or Field 'issueFunction' does not exist or you do not have permission to view it. Built in, parent, parentEpic and hierarchyLevel cover most of what people want from them.

Atlassian’s own examples: 14 of 81 fail as printed

We pasted every example query on Atlassian’s functions page, 95 in all, into the same strict check without changing a character.

Stacked bar of the 95 example queries on Atlassian's JQL functions page, each pasted unchanged into Jira Cloud's strict JQL check on 2 December 2026: 37 ran as printed, 30 failed only because they use placeholder names such as the user jsmith, the space ABC or a custom field called Location, 14 are wrong as printed and fail on any site, and 14 are Jira Service Management examples that need a service licence. Below, the six mistakes and the fix: work item in watchedWorkItems() fails with Expecting operator but got item in 8 examples, write issue in; space in spacesLeadByUser() fails because the field space does not exist, 4 examples, write project in; linkedWorkItems() is not a function, write linkedIssues(); the permission Resolve work items does not exist, write Resolve issues; parentEpic = DEMO 123 needs the hyphen; approval = myApproval() needs the field name approvals.

37 ran. 30 failed only because they name things your site will not have, such as the user jsmith, the space ABC or a custom field called Location; with your own names they run. 14 are service management examples. That leaves 14 of the 81 others that are wrong as printed and fail on every site:

As printedJira saysWrite instead
work item in watchedWorkItems() (8 examples)Error in the JQL Query: Expecting operator but got 'item'.issue in watchedWorkItems()
space in spacesLeadByUser() AND status = Open (4)Field 'space' does not exist or you do not have permission to view it.project in spacesLeadByUser() AND status = Open
work item in linkedWorkItems(ABC-123) (3)Unable to find JQL function 'linkedWorkItems(PAY-1)'., even after issue inissue in linkedIssues("ABC-123")
space in spacesWhereUserHasPermission("Resolve work items")Function 'spacesWhereUserHasPermission' can not generate a list of projects for permission 'Resolve work items': the permission does not exist.project in spacesWhereUserHasPermission("Resolve issues")
parentEpic = DEMO 123Error in the JQL Query: Expecting either 'OR' or 'AND' but got '123'.parentEpic = DEMO-123
approval = myApproval()Field 'approval' does not exist or you do not have permission to view it.approvals = myApproval()

Some examples carry two of these mistakes, and one more has a typo, pspacesLeadByUser(bill). The pattern behind most of them: the docs now say “work item” and “space”, but the JQL field names did not change. Atlassian’s note at the top of the page says as much, and its advice is the fix: “try using the old term instead”. Not every new name fails, though: workType in standardWorkTypes() and workItem in watchedWorkItems(), written as one word, both ran.

The renamed functions: which work today

In 2026 Atlassian started calling issues “work items” and projects “spaces”. The JQL reference now lists new names, with a warning on the keywords page that “some JQL entries using the new terms may not work yet”. We ran each name exactly as the reference prints it on our site on 13 November 2026, and again on 2 December 2026 with the same result.

Old nameNew name in the docsNew name works?
issueHistory()workItemHistory()Yes
watchedIssues()watchedWorkItems()Yes
votedIssues()votedWorkItems()Yes
projectsLeadByUser()spacesLeadByUser()Yes
projectsWhereUserHasRole()spacesWhereUserHasRole()Yes
projectsWhereUserHasPermission()spacesWhereUserHasPermission()Yes
standardIssueTypes()standardWorkTypes()Yes
subTaskIssueTypes()subtaskWorkTypes()Yes
issuesWithRemoteLinksByGlobalId()workItemsWithRemoteLinksByGlobalId()Yes
issuekeyworkItemKeyYes
issueLinkTypeworkItemLinkTypeYes
projectTypespaceTypeYes
projectspaceJiraYes
issuetype, typeworkTypeYes
issueworkItem (one word)Yes; work item with a space fails
linkedIssues()linkedWorkItems()No: Unable to find JQL function 'linkedWorkItems(SPR-10)'.
parentProjectparentSpaceNo: Field 'parentSpace' does not exist or you do not have permission to view it.

The obvious guess fails too: space = SPR returned Field 'space' does not exist or you do not have permission to view it. The old names all still work, so saved filters, boards and Automation rules are safe. For new queries, keep the old names until the new ones work everywhere.

Seven traps, tested

Table titled Seven JQL traps, tested on Jira Cloud, on our test site with 162 work items. assignee != currentUser() found 86 items and left out the 56 unassigned; add OR assignee is EMPTY for 142. Done AND High OR Highest found 13 items because AND is read first; with brackets, 4. resolution = Unresolved found 137 items, 6 of them in a Done status with no resolution; use statusCategory != Done for not finished. reporter != assignee returned all 106 assigned items, also the 10 where reporter and assignee are the same person; JQL cannot compare two fields. summary ~ pay found 0 items though payment is in a summary; pay* found 1. created > 11/01/2026 is an error; write 2026-11-01, year first. space = PAY is an error, field space does not exist; write project = PAY or spaceJira = PAY.
  1. != and NOT IN skip empty fields. 86 instead of 142 in our test. Add OR field is EMPTY.
  2. AND before OR. 13 instead of 4. Put brackets around every OR.
  3. Unresolved is not “not done”. Six done items had no resolution. Use statusCategory.
  4. No field-to-field comparison. reporter != assignee returned all 106 assigned items, including the 10 where both were the same person. reporter = assignee returned 0.
  5. No part words. "pay" missed “payment”. Use "pay*".
  6. Dates are year first. US-style dates are an error.
  7. Reserved words need quotes. labels = select failed with Error in the JQL Query: 'select' is a reserved JQL word. You must surround it in quotation marks. JQL reserves 195 words, among them select, order, limit, user, date and empty. Characters such as @ or brackets inside a text search go in quotes too, and a bracket needs two backslashes: summary ~ "\\(text".

Build it without typing

If you would rather click than type, our free JQL builder writes a query from a form and explains one you paste, clause by clause, with the traps above flagged. It runs in your browser and sends nothing anywhere.

Inside Jira, our app JQL Blocks does the same with blocks: AND, OR, groups and NOT, the JQL written beside them, and sprint start and end dates as real Jira fields that plain JQL does not have.

How we tested

  • Site: a Jira Cloud test site on the Standard plan, 162 work items in 12 spaces (software, service and business), on 13 November 2026.
  • Syntax: every query on this page through POST /rest/api/3/jql/parse?validation=strict, which also checks that fields, values and functions exist. 67 of 67 passed on 13 November; the function queries added on 2 December passed too, except where the text shows the error.
  • Results: each query counted with POST /rest/api/3/search/approximate-count; the traps were then checked one by one in the search results.
  • 2 December 2026: the 54 functions and all 95 examples from Atlassian’s functions page, the same way, on the same site, which had 230 work items by then.
  • Reference: Atlassian’s JQL fields, operators, functions, keywords, advanced search and text search pages, read on the same day.

Space keys, group names and work item keys such as PAY-1 are from our site. Replace them with yours.

Frequently asked questions

How do I write a JQL query?

Open Jira search, switch to JQL, and write clauses of the form field, operator, value: project = PAY, status = "In Review", due < now(). Join clauses with AND or OR, group them in brackets, and end with ORDER BY to sort, for example project = PAY AND statusCategory != Done ORDER BY priority DESC.

Is JQL the same as SQL?

No. JQL looks like a SQL WHERE clause, but there is no SELECT, no JOIN and no GROUP BY, and you cannot compare two fields with each other: reporter != assignee is read as "reporter is not a person called assignee". JQL only picks work items and sorts them; Jira decides which columns you see.

What does statusCategory mean in JQL?

Every status belongs to one of three categories: To Do, In Progress and Done. statusCategory != Done finds unfinished work whatever your workflow calls its statuses, so the query keeps working when someone adds a status such as In Review or Released.

Why does != hide work items with an empty field?

In JQL, != and NOT IN only match work items where the field has a value. On our test site assignee != currentUser() returned 86 items and left out 56 unassigned ones. Add OR assignee is EMPTY to keep them; the same goes for labels, components and versions.

How do I search for part of a word in JQL?

You cannot match the middle of a word. Text search works on whole words, so summary ~ "pay" did not find "payment" in our test. Put * at the end, summary ~ "pay*", or ? for a single letter. A * at the start, as in "*etry", returned nothing.

Do the new names in the Jira docs work in JQL?

Most do. On 13 November and again on 2 December 2026 workItemHistory(), watchedWorkItems(), spacesLeadByUser(), workItemKey, workType and workItemLinkType all worked. linkedWorkItems() and parentSpace failed with errors, and space = KEY failed too, so keep linkedIssues(), parentProject and project.

What functions can I use in JQL?

Jira Cloud has 54 built-in functions. 34 work on any site: dates such as now(), startOfDay() and endOfWeek(), people such as currentUser() and membersOf(), sprints and versions such as openSprints() and unreleasedVersions(), and your own lists such as watchedWorkItems(). The other 20 are for Jira Service Management approvals, SLAs, customers and entitlements. Functions such as childIssuesOf() or issueFunction come from apps like ScriptRunner and are not built in.

Is there a CONTAINS operator in JQL?

No. Use the tilde for text: summary ~ "payment" finds summaries with the word payment. Writing summary contains "payment" gives the error Expecting operator but got contains, and LIKE is a reserved word. For list fields such as labels or components, use = or IN.

Why does an example from the Atlassian JQL docs fail?

Since Jira started saying work item and space, some examples on Atlassian's functions page use names JQL does not accept yet: work item in, space in and linkedWorkItems(). Write issue in, project in and linkedIssues(). On 2 December 2026, 14 of the 81 examples outside service management failed as printed.

Keep reading