Jira JQL functions cheat sheet
On this page
This cheat sheet lists built-in JQL functions for Jira Cloud with one example each, grouped by what you want to find. Every function and example is taken from Atlassian’s reference, linked under Sources, and was checked on 2026-12-06. Use your own space keys, group names and usernames in place of ABC, jsmith and similar. Atlassian now says “work item” for what older pages call an issue, and the examples follow Atlassian’s wording.
Print it with your browser’s print command: the menu and footer are left out of the printout.
People and groups
| Function | What it finds | Example |
|---|---|---|
currentUser() |
Work items related to whoever is signed in | assignee = currentUser() |
currentUser() |
Reported by you, assigned to someone else | reporter = currentUser() AND assignee != currentUser() |
membersOf() |
Assignees (or reporters) in a group | assignee in membersOf("jira-administrators") |
membersOf() |
A group, minus named people | assignee in membersOf(QA) and assignee not in ("John Smith","Jill Jones") |
membersOf() |
Everyone outside a group | assignee not in membersOf(QA) |
votedWorkItems() |
Work items you voted for | work item in votedWorkItems() |
watchedWorkItems() |
Work items you watch | work item in watchedWorkItems() |
workItemHistory() |
Work items you recently viewed | work item in workItemHistory() AND assignee = currentUser() |
updatedBy() |
Work items a person updated, optionally in a time range | workItemKey in updatedBy(jsmith, "-8d") |
membersOf() stops with an error when it returns more than 10,000 users, so use smaller groups. For a team, Atlassian says to pass the team ID, not the team name.
Dates and sessions
| Function | What it finds | Example |
|---|---|---|
now() |
Overdue work items | duedate < now() and status not in (closed, resolved) |
startOfDay() |
Created today | created > startOfDay() |
startOfDay("-3d") |
Created in the last three days | created > startOfDay("-3d") |
startOfWeek() |
Created since the start of this week | created > startOfWeek() |
startOfWeek("-1") |
Created since the start of last week | created > startOfWeek("-1") |
startOfMonth() |
Created since the start of this month | created > startOfMonth() |
startOfYear() |
Created since the start of this year | created > startOfYear() |
endOfDay() |
Due by the end of today | due < endOfDay() |
endOfWeek() |
Due by the end of this week | due < endOfWeek() |
endOfMonth() |
Due by the end of this month | due < endOfMonth() |
endOfYear() |
Due by the end of this year | due < endOfYear() |
currentLogin() |
Created during your current session | created > currentLogin() |
lastLogin() |
Created during your last session | created > lastLogin() |
The start and end functions take an optional increment, such as "-1" for the previous period or "+14d" to move by days. If you leave out the unit, the function uses its own period: startOfWeek("-1") is one week back. The default first day of the week is Sunday and the default last day is Saturday.
Sprints
| Function | What it finds | Example |
|---|---|---|
openSprints() |
Work items in a sprint that has started and not finished | sprint in openSprints() |
closedSprints() |
Work items in a completed sprint | sprint in closedSprints() |
futureSprints() |
Work items in a sprint that has not started | sprint in futureSprints() |
A work item can belong to both a completed and an incomplete sprint. These functions work with IN and NOT IN; they do not support WAS or CHANGED, so they cannot tell you when a work item joined a sprint.
Versions and releases
| Function | What it finds | Example |
|---|---|---|
releasedVersions() |
Fix version is a released version of a space | fixVersion in releasedVersions(ABC) |
unreleasedVersions() |
Fix version is an unreleased version | fixVersion in unreleasedVersions(ABC) |
latestReleasedVersion() |
Fix version is the latest release | fixVersion = latestReleasedVersion(ABC) |
earliestUnreleasedVersion() |
Fix version is the next version in the release order | fixVersion = earliestUnreleasedVersion(ABC) |
Links, hierarchy and work types
| Function | What it finds | Example |
|---|---|---|
linkedWorkItems() |
Work items linked to one work item | work item in linkedWorkItems(ABC-123) |
linkedWorkItems() |
Linked by a given link type | work item in linkedWorkItems(ABC-123,"is duplicated by") |
standardWorkTypes() |
Work items that are not subtasks | workType in standardWorkTypes() |
subtaskWorkTypes() |
Subtasks only | workType in subtaskWorkTypes() |
workItemsWithRemoteLinksByGlobalId() |
Work items with a remote link that has a given global ID | work item in workItemsWithRemoteLinksByGlobalId(abc) |
Link type names are case sensitive. The reference also lists linkedWorkItem (singular), which finds the subtasks of a parent-level work item; it applies to company-managed spaces only.
Spaces and permissions
| Function | What it finds | Example |
|---|---|---|
componentsLeadByUser() |
Open work items in components you lead | component in componentsLeadByUser() AND status = Open |
spacesLeadByUser() |
Open work items in spaces you lead | space in spacesLeadByUser() AND status = Open |
spacesWhereUserHasPermission() |
Open work items in spaces where you hold a permission | space in spacesWhereUserHasPermission("Resolve work items") AND status = Open |
spacesWhereUserHasRole() |
Open work items in spaces where you hold a role | space in spacesWhereUserHasRole("Developers") AND status = Open |
What this sheet leaves out
Functions for Jira Service Management and Customer Service Management (for example breached(), organizationDetail() and customerDetail()) are in Atlassian’s reference and need those products. A few examples in the reference could not be grounded and are left out: the updatedBy() date-range and hour examples, and the multi-group membersOf() examples that contain placeholder IDs. Atlassian adds and renames functions, so check the reference for syntax before you save a filter.
For a list organised by question, with notes on what needs an app, read the Jira JQL functions list. For sprint history, which built-in JQL cannot answer, see issues added to a sprint after it started. To find epics whose children are all done, see the epics guide.
Sources
- Atlassian Support: JQL functions, checked 2026-12-06. All function names, operators and examples above come from this page.