English

Jira JQL functions list for Jira Cloud, by what you want to find

On this page

A JQL function supplies a value or a set of work items that Jira works out when the search runs. This list groups the functions in Atlassian’s Jira Cloud reference by what you are trying to find, then shows the questions that need an app. Atlassian now calls issues work items and projects spaces, and the function names follow. This page lists Jira’s built-in functions; the functions an app adds are in the Flexible JQL functions reference.

Diagram Which function for which question

You want to findStarts withBuilt in?
Work for people or groupscurrentUser(), membersOf()Built in
Work by sprint state or releaseopenSprints(), releasedVersions()Built in
Links of one known keylinkedWorkItems()Built in
Links of every match of a querylinkedToNeeds an app
What joined a sprint lateaddedAfterSprintStartNeeds an app
Parents with no subtaskswithoutSubtasksNeeds an app
Native Jira Cloud functions cover people, dates, sprints, versions and spaces. Questions about history and sets of linked work need an app.

People and groups

Function Finds
currentUser() Work for the person who runs the search
membersOf() Work matching the members of a group
componentsLeadByUser() Work in components that a user leads
votedWorkItems() Work items you voted for
watchedWorkItems() Work items you watch
updatedBy() Work items a user updated, optionally in a time range
assignee = currentUser() AND statusCategory != Done

Dates and sessions

now(), startOfDay(), startOfWeek(), startOfMonth(), startOfYear(), endOfDay(), endOfWeek(), endOfMonth() and endOfYear() keep a filter moving with the calendar. currentLogin() and lastLogin() use the start of your current and previous session.

duedate < now() AND statusCategory != Done

Sprints and versions

Function Finds
openSprints() Work in sprints that have started and are not completed
closedSprints() Work in completed sprints
futureSprints() Work in sprints not yet started
releasedVersions(), unreleasedVersions() Work by whether a version is released
latestReleasedVersion(), earliestUnreleasedVersion() The most recent release, or the next one
sprint in openSprints() AND assignee = currentUser()

linkedWorkItems() returns the work items linked to one work item key. standardWorkTypes() and subtaskWorkTypes() separate sub-tasks from everything else. parentEpic applies to company-managed spaces only. workItemsWithRemoteLinksByGlobalId() finds work items with particular remote links, and workItemHistory() finds the ones you viewed recently.

issue in linkedWorkItems("ABC-123")

Spaces and permissions

spacesLeadByUser(), spacesWhereUserHasPermission() and spacesWhereUserHasRole() narrow a search to spaces a person leads, can act in or has a role in. cascadeOption() searches a cascading select field.

Jira Service Management and customer functions

Functions for approvals and SLAs, such as approved(), pending(), breached(), paused(), running(), remaining() and withinCalendarHours(), apply to sites with Jira Service Management. Organization functions such as organizationMembers() belong there too.

Which questions need an app?

The built-in set starts from values, people, dates, sprints, versions and single work items. Questions about relationships across a whole set need an app function. Flexible JQL for Jira adds 55, including:

Question Function
What links to any issue matching a query? linkedTo
What joined a sprint after it started? addedAfterSprintStart
Which issues have no subtasks? withoutSubtasks
Which epics have every child done? an indexed field

The full set, by area and with examples, is in the Flexible JQL functions reference. If you are choosing between apps, read the comparison of advanced JQL apps. Flexible JQL for Jira is built on Atlassian Forge and Runs on Atlassian, and is coming soon to the Atlassian Marketplace.

A printable one-page reference is the Jira JQL functions cheat sheet.

Sources

Frequently asked questions

What is a JQL function?

A JQL function works something out at search time and supplies the value or the set of work items for a clause, such as currentUser() for the person searching or openSprints() for sprints that are running.

Which JQL function returns the current user?

currentUser() performs the search for whoever is signed in, so one shared filter such as assignee = currentUser() shows each person their own work.

How do I search by date relative to today in JQL?

Use functions such as now(), startOfDay(), startOfWeek(), startOfMonth() and their endOf counterparts, so that a saved filter moves with the calendar.

Can an app add more JQL functions to Jira Cloud?

Yes. Apps can add functions for questions the built-in set does not answer, such as following the links of every issue in a query or finding parents whose children are all done.