JQL Cheat Sheet: Syntax, All 54 Functions, Tested Examples
On this page
- How a JQL query is built
- Your own work
- Status and resolution
- Dates
- Text
- JQL contains: use ~, there is no CONTAINS
- People and teams
- Sprints and releases
- Epics, parents, subtasks and links
- History: WAS and CHANGED
- Other fields, spaces and sorting
- All 17 operators
- Every JQL function, with a query that works
- Atlassian’s own examples: 14 of 81 fail as printed
- The renamed functions: which work today
- Seven traps, tested
- Build it without typing
- 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.
Three rules save most of the debugging:
- Quote values with spaces or special characters:
status = "In Review",labels = "select". - AND binds tighter than OR.
statusCategory = Done AND priority = High OR priority = Highestreturned 13 items on our site; with brackets around the two priorities, 4. - A query needs at least one condition when an app or a script runs it through the REST API.
order by keyon its own came back asUnbounded JQL queries are not allowed here. Please add a search restriction to your query.
Your own work
| You want | JQL |
|---|---|
| My open work, most urgent first | assignee = currentUser() AND statusCategory != Done ORDER BY priority DESC, updated DESC |
| What I reported in the last 30 days | reporter = currentUser() AND created >= -30d |
| What I watch and is still open | watcher = currentUser() AND statusCategory != Done |
| Everything I watch | issue in watchedIssues() |
| What I opened recently | issue in issueHistory() ORDER BY lastViewed DESC |
| Viewed in the last week | lastViewed >= -7d |
| Mine or nobody’s in one space | assignee 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 want | JQL |
|---|---|
| Not started | statusCategory = "To Do" |
| Being worked on | statusCategory = "In Progress" |
| Not finished, whatever the workflow | statusCategory != Done |
| Exact statuses | status in ("In Progress", "In Review") |
| Not in two statuses | status not in (Done, Closed) |
| No resolution set | resolution = Unresolved |
| Done but nobody set a resolution | resolution = Unresolved AND statusCategory = Done |
| Resolved but reopened | resolution 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 want | JQL |
|---|---|
| Created today | created >= startOfDay() |
| Created this week | created >= startOfWeek() |
| Created in the last 7 days | created >= -7d |
| Open and untouched for a month | updated <= -30d AND statusCategory != Done |
| Overdue | due < now() AND statusCategory != Done |
| Due this week | due >= startOfDay() AND due <= endOfWeek() |
| Open with no due date | duedate is EMPTY AND statusCategory != Done |
| Resolved last month | resolved >= startOfMonth(-1) AND resolved < startOfMonth() |
| A fixed quarter | created >= "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 want | JQL |
|---|---|
| A word in the summary | summary ~ "payment" |
| An exact phrase | summary ~ "\"duplicate charge\"" |
| Words that start with refund | summary ~ "refund*" |
| Summary, description and comments | text ~ "timeout" |
| Only in comments | comment ~ "rollback" |
| No description at all | description is EMPTY |
| Without a word | summary !~ "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 mean | JQL |
|---|---|
| The summary contains a word | summary ~ "payment" |
| Contains a word that starts with “pay” | summary ~ "pay*" |
| Any text field contains a word | text ~ "payment" |
| Does not contain a word | summary !~ "test" |
| Labels contain one of these | labels in (payments, checkout) |
| The field contains anything at all | attachments 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 want | JQL |
|---|---|
| Unassigned and open in one space | assignee is EMPTY AND project = PAY AND statusCategory != Done |
| Someone in a group | assignee in membersOf("jira-users-simplify-demo") |
| I reported it, someone else has it | reporter = currentUser() AND assignee != currentUser() |
| Reassigned this week | assignee changed AFTER -7d |
| I voted for it | voter = currentUser() |
| Most votes first | votes > 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 want | JQL |
|---|---|
| In a running sprint | sprint in openSprints() |
| Planned for a later sprint | sprint in futureSprints() |
| Carried over into the running sprint | sprint in closedSprints() AND sprint in openSprints() |
| Open work in no sprint | sprint is EMPTY AND statusCategory != Done AND project = PAY |
| In versions not released yet | fixVersion in unreleasedVersions() |
| In the next release of one space | fixVersion = earliestUnreleasedVersion(PAY) |
| Done but in no release | fixVersion 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.
Epics, parents, subtasks and links
| You want | JQL |
|---|---|
| Children of one epic | parent = PAY-1 |
| Open epics | type = Epic AND statusCategory != Done |
| All subtasks | hierarchyLevel = -1 |
| Subtask types, or the standard ones | issuetype in subTaskIssueTypes() / issuetype in standardIssueTypes() |
| Linked to one work item | issue in linkedIssues("PAY-1") |
| Blocking one work item | issue in linkedIssues("PAY-1", "is blocked by") |
| Blocked and still open | issueLinkType = "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 want | JQL |
|---|---|
| Was in progress before this week | status WAS "In Progress" BEFORE startOfWeek() |
| Moved back to To Do in two weeks | status CHANGED FROM "In Progress" TO "To Do" AFTER -14d |
| Finished last month | status CHANGED TO Done DURING (startOfMonth(-1), endOfMonth(-1)) |
| Ever assigned to me | assignee WAS currentUser() |
| Priority changed this week | priority 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 want | JQL |
|---|---|
| No labels | labels is EMPTY |
| Either of two labels | labels in (payments, checkout) |
| Without a label, unlabelled included | labels not in (payments) OR labels is EMPTY |
| No component in one space | component is EMPTY AND project = PAY |
| With attachments | attachments 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 want | JQL |
|---|---|
| Spaces I lead | project in projectsLeadByUser() |
| Spaces where I hold a role | project in projectsWhereUserHasRole("Administrators") |
Sorting
| You want | JQL |
|---|---|
| Board order | project = PAY ORDER BY Rank ASC |
| Priority, then oldest first | project = 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
| Operator | Meaning | Example |
|---|---|---|
= | is exactly | status = Done |
!= | has a value, and not this one | priority != Low |
> >= < <= | after or before, more or less | due < now() |
IN | any of a list | status in ("To Do", "In Progress") |
NOT IN | none of a list, empty excluded | labels not in (payments) |
~ | contains words | summary ~ "refund*" |
!~ | does not contain words | summary !~ "test" |
IS | is empty | assignee is EMPTY |
IS NOT | is not empty | attachments is not EMPTY |
WAS | had this value at some point | assignee WAS currentUser() |
WAS IN | had any of these values | status WAS IN ("In Review", QA) |
WAS NOT | never had this value (in a period) | status WAS NOT Done BEFORE -7d |
WAS NOT IN | never had any of these | status WAS NOT IN (Done, Closed) |
CHANGED | the value changed | priority 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
| Function | Query that works | Found |
|---|---|---|
now() | due < now() AND statusCategory != Done | 42 |
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
| Function | Query that works | Found |
|---|---|---|
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
| Function | Query that works | Found |
|---|---|---|
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
| Function | Query that works | Found |
|---|---|---|
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.
Work types, links and custom fields
| Function | Query that works | Found |
|---|---|---|
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 linkedWorkItem | linkedWorkItem = PAY-1 | 12 |
field parentEpic | parentEpic = PAY-1 | 12 |
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
| For | Functions | Example |
|---|---|---|
| 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.
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 printed | Jira says | Write 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 in | issue 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 123 | Error 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 name | New name in the docs | New 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 |
issuekey | workItemKey | Yes |
issueLinkType | workItemLinkType | Yes |
projectType | spaceType | Yes |
project | spaceJira | Yes |
issuetype, type | workType | Yes |
issue | workItem (one word) | Yes; work item with a space fails |
linkedIssues() | linkedWorkItems() | No: Unable to find JQL function 'linkedWorkItems(SPR-10)'. |
parentProject | parentSpace | No: 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
!=andNOT INskip empty fields. 86 instead of 142 in our test. AddOR field is EMPTY.- AND before OR. 13 instead of 4. Put brackets around every OR.
- Unresolved is not “not done”. Six done items had no resolution. Use
statusCategory. - No field-to-field comparison.
reporter != assigneereturned all 106 assigned items, including the 10 where both were the same person.reporter = assigneereturned 0. - No part words.
"pay"missed “payment”. Use"pay*". - Dates are year first. US-style dates are an error.
- Reserved words need quotes.
labels = selectfailed withError in the JQL Query: 'select' is a reserved JQL word. You must surround it in quotation marks. JQL reserves 195 words, among themselect,order,limit,user,dateandempty. 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.