# JQL reference for Jira Cloud: fields, functions, operators

URL: https://goingstellar.ro/reference/jql/

JQL (Jira Query Language) is the search language behind Jira filters, boards, dashboards and automation rules. This reference has one page per field, function, operator and keyword: 30 fields, 30 functions, 15 operators and 5 keywords.

Every example was run on Jira Cloud, and each page gives the date of the run. Atlassian's pages now say "work item" and "space", but JQL still uses issue and project, so some examples copied from the docs fail. Where that happens, the page quotes the real error and the form that works.

## Fields

- [affectedVersion](https://goingstellar.ro/reference/jql/affectedversion-field.md): The affectedVersion field in JQL finds bugs by the release they were seen in. Syntax, version functions, IS EMPTY and why history searches fail.
- [assignee](https://goingstellar.ro/reference/jql/assignee-field.md): The assignee field in JQL: names, IDs and emails, EMPTY, currentUser(), membersOf(), WAS and CHANGED, with tested examples and traps.
- [attachments](https://goingstellar.ro/reference/jql/attachments-field.md): The attachments field in JQL: find work with or without files attached using IS EMPTY and IS NOT EMPTY, and see which operators are rejected.
- [comment](https://goingstellar.ro/reference/jql/comment-field.md): The comment field in JQL searches the text of comments with ~ and !~. Phrases, wildcards, the 1,000 comment limit and why = and IS EMPTY fail.
- [component](https://goingstellar.ro/reference/jql/component-field.md): The component field in JQL finds work by the part of a space it belongs to. Syntax, IS EMPTY, componentsLeadByUser() and the unknown-component error.
- [created](https://goingstellar.ro/reference/jql/created-field.md): The created field in JQL: date and time formats, relative values like "-1d", one calendar day, date functions and tested examples.
- [creator](https://goingstellar.ro/reference/jql/creator-field.md): The creator field finds work items by the person who created them, which never changes. Syntax, currentUser(), membersOf(), errors and examples.
- [description](https://goingstellar.ro/reference/jql/description-field.md): The description field in JQL searches the body of a work item with ~ and finds empty ones with IS EMPTY. Phrases, wildcards and the empty-string error.
- [duedate](https://goingstellar.ro/reference/jql/duedate-field.md): The due date field in JQL: accepted date formats, relative values like "1d", date-only matching, EMPTY checks and tested examples.
- [fixVersion](https://goingstellar.ro/reference/jql/fixversion-field.md): The fixVersion field in JQL finds work planned for or shipped in a release. Syntax, version functions, IS EMPTY, history and the unknown-version error.
- [issueLinkType](https://goingstellar.ro/reference/jql/issuelinktype-field.md): The issueLinkType field finds work items by the kind of link they have, such as blocks or relates to. Syntax, name versus description, and errors.
- [key](https://goingstellar.ro/reference/jql/issuekey-field.md): The key field finds work items by key such as WEB-25. Aliases issuekey, issue and id, key ranges, IN lists, wildcards, and the exact errors.
- [labels](https://goingstellar.ro/reference/jql/labels-field.md): The labels field in JQL: find work by label, find unlabelled work, and avoid the != and NOT IN traps. Tested syntax, real error messages and examples.
- [lastViewed](https://goingstellar.ro/reference/jql/lastviewed-field.md): The lastViewed field in JQL: find work you opened recently or have not looked at for weeks, with relative dates and ORDER BY lastViewed DESC.
- [originalEstimate](https://goingstellar.ro/reference/jql/originalestimate-field.md): The originalEstimate field in JQL: compare estimates with 2d, 4h or "1d 2h", find unestimated work, and see the duration errors Jira returns.
- [parent](https://goingstellar.ro/reference/jql/parent-field.md): The parent field in JQL lists the child work items of an epic or a work item. Tested syntax, IS EMPTY, old Epic Link names and the errors you will meet.
- [priority](https://goingstellar.ro/reference/jql/priority-field.md): The priority field holds the urgency of a work item. Syntax, comparison like >= High, ordering, history search and examples for triage on Jira Cloud.
- [project](https://goingstellar.ro/reference/jql/project-field.md): The project field in JQL, called space in the docs. Search by key, name or ID, with IN lists and functions. Examples and the space error.
- [reporter](https://goingstellar.ro/reference/jql/reporter-field.md): The reporter field holds the person who raised a work item. Syntax, currentUser() and membersOf(), history search and examples for requests you filed.
- [resolution](https://goingstellar.ro/reference/jql/resolution-field.md): The resolution field holds how a work item was closed, such as Done or Won't Do. Syntax, the Unresolved value, history search and the status category link.
- [resolved](https://goingstellar.ro/reference/jql/resolved-field.md): The resolved field holds when a work item was resolved. Syntax, the resolutionDate alias, date formats and queries for weekly and monthly reviews.
- [sprint](https://goingstellar.ro/reference/jql/sprint-field.md): The sprint field in JQL: search by name or ID, openSprints(), futureSprints(), EMPTY for backlog work, with tested examples and error messages.
- [status](https://goingstellar.ro/reference/jql/status-field.md): The status field in JQL: names versus IDs, multi-word values, IN lists, WAS and CHANGED history, with tested examples and error messages.
- [summary](https://goingstellar.ro/reference/jql/summary-field.md): The summary field in JQL searches work item titles with the ~ operator. Phrases, wildcards, stemming, fuzzy search and the errors for = and empty strings.
- [text](https://goingstellar.ro/reference/jql/text-field.md): The text field searches summary, description, environment, comments and free-text custom fields in one clause. Syntax, phrases, wildcards and exact errors.
- [timeSpent](https://goingstellar.ro/reference/jql/timespent-field.md): The timeSpent field in JQL: filter work by logged time with 5d, 90m or "1d 2h", find work with no time logged and avoid the field-to-field trap.
- [type](https://goingstellar.ro/reference/jql/type-field.md): The type field in JQL, also written issuetype or workType: filter by Bug, Task, Story, Epic or Subtask. Tested names, IDs, functions and error messages.
- [updated](https://goingstellar.ro/reference/jql/updated-field.md): The updated field in JQL: date and time formats, relative values like "-2w", date functions, stale-work queries and tested examples.
- [watcher](https://goingstellar.ro/reference/jql/watcher-field.md): The watcher field finds work items that a person or group watches. Syntax with currentUser() and membersOf(), permission note, errors and examples.
- [worklogDate](https://goingstellar.ro/reference/jql/worklogdate-field.md): The worklogDate field in JQL: find work with time logged on a day, this week or this month, using date strings, offsets and startOfWeek().

## Functions

- [closedSprints()](https://goingstellar.ro/reference/jql/closedsprints.md): closedSprints() matches work items in a completed sprint. See the syntax, carry-over queries and why = fails and NOT IN skips work with no sprint.
- [componentsLeadByUser()](https://goingstellar.ro/reference/jql/componentsleadbyuser.md): componentsLeadByUser() returns the components a person leads, for use with the component field. See syntax, the optional user argument and working queries.
- [currentLogin()](https://goingstellar.ro/reference/jql/currentlogin.md): currentLogin() is the moment your current Jira session began. Use it for what changed during this session. Syntax, examples, limits.
- [currentUser()](https://goingstellar.ro/reference/jql/currentuser.md): currentUser() stands for whoever runs the search, so one saved filter shows each person their own work. Syntax, supported fields, tested examples.
- [earliestUnreleasedVersion()](https://goingstellar.ro/reference/jql/earliestunreleasedversion.md): earliestUnreleasedVersion() is the next version to ship in a project, by list order. See = and != usage, release-day queries and common mistakes.
- [endOfDay()](https://goingstellar.ro/reference/jql/endofday.md): endOfDay() is the last moment of today in JQL, used for due-today and due-by-tomorrow filters. Syntax, offsets and a due-date trap checked on a live site.
- [endOfMonth()](https://goingstellar.ro/reference/jql/endofmonth.md): endOfMonth() is the last day of the current month in JQL. Syntax, the "+1" and "+15d" offsets, and month-end queries tested on a live Jira Cloud site.
- [endOfWeek()](https://goingstellar.ro/reference/jql/endofweek.md): endOfWeek() is the last day of the current week in JQL. Syntax, the Saturday default, offsets for next week, and examples run on a live Jira Cloud site.
- [endOfYear()](https://goingstellar.ro/reference/jql/endofyear.md): endOfYear() is the last moment of the current year in JQL. See the offset syntax and due-date queries for year-end deadlines, with the traps to avoid.
- [futureSprints()](https://goingstellar.ro/reference/jql/futuresprints.md): futureSprints() matches work items in sprints that have not started. See the syntax, planning queries and the operators and NOT IN trap to watch for.
- [issueHistory()](https://goingstellar.ro/reference/jql/issuehistory.md): issueHistory() finds the Jira issues you viewed recently, up to 50 of them. Syntax, the new workItemHistory() name, tested examples and errors.
- [lastLogin()](https://goingstellar.ro/reference/jql/lastlogin.md): lastLogin() is the moment your previous Jira session began. Use it for what changed since your previous visit. Syntax, examples, limits.
- [latestReleasedVersion()](https://goingstellar.ro/reference/jql/latestreleasedversion.md): latestReleasedVersion() points at the most recent released version of a project. See = and != usage, bug queries after a release and how order is decided.
- [linkedIssues()](https://goingstellar.ro/reference/jql/linkedissues.md): linkedIssues() finds the Jira issues linked to a given issue, filtered by link wording such as blocks. Syntax, real errors, why linkedWorkItems() fails.
- [membersOf()](https://goingstellar.ro/reference/jql/membersof.md): membersOf() matches users who belong to a group or team, so you filter by a group instead of listing people. Syntax, tested examples, errors.
- [now()](https://goingstellar.ro/reference/jql/now.md): now() is the current moment in JQL, the usual way to find overdue work. Syntax, supported fields, and what it does on a date-only due field, tested live.
- [openSprints()](https://goingstellar.ro/reference/jql/opensprints.md): openSprints() matches work items in sprints that were started and not completed. Syntax, supported operators, examples and the empty-result case.
- [projectsLeadByUser()](https://goingstellar.ro/reference/jql/projectsleadbyuser.md): projectsLeadByUser() (spacesLeadByUser() in the new docs) returns the projects a person leads. See syntax, the exact errors and queries you can use.
- [projectsWhereUserHasPermission()](https://goingstellar.ro/reference/jql/projectswhereuserhaspermission.md): projectsWhereUserHasPermission() (spacesWhereUserHasPermission() in new docs) lists projects where you hold a permission. Exact names and errors included.
- [releasedVersions()](https://goingstellar.ro/reference/jql/releasedversions.md): releasedVersions() matches every version your admin has marked as released. See the project argument, IN usage and queries for shipped but unfinished work.
- [standardIssueTypes()](https://goingstellar.ro/reference/jql/standardissuetypes.md): standardIssueTypes() (standardWorkTypes() in the new docs) matches work that is not a sub-task. See syntax, the type field to use and tested queries.
- [startOfDay()](https://goingstellar.ro/reference/jql/startofday.md): startOfDay() returns 00:00 today, or another day with an offset like "-1". Syntax, supported fields, tested examples and time zone traps.
- [startOfMonth()](https://goingstellar.ro/reference/jql/startofmonth.md): startOfMonth() gives the first day of the current month in JQL. Syntax, offsets like "-1" and "+14d", and queries tested on a live Jira Cloud site.
- [startOfWeek()](https://goingstellar.ro/reference/jql/startofweek.md): startOfWeek() marks the first moment of the current week in JQL. See the offset syntax, the Sunday versus Monday question, and examples run on a live site.
- [startOfYear()](https://goingstellar.ro/reference/jql/startofyear.md): startOfYear() is the first moment of the current year in JQL. Learn the offset syntax and see year-to-date and last-year queries with notes on units.
- [subtaskIssueTypes()](https://goingstellar.ro/reference/jql/subtaskissuetypes.md): subtaskIssueTypes() (subtaskWorkTypes() in the new docs) finds sub-tasks without naming each type. See syntax, queries and the errors to expect.
- [unreleasedVersions()](https://goingstellar.ro/reference/jql/unreleasedversions.md): unreleasedVersions() matches versions that are not released yet. See the project argument and queries for upcoming release scope and open blockers.
- [updatedBy()](https://goingstellar.ro/reference/jql/updatedby.md): updatedBy() finds work items a given user changed, optionally within a date range. See the three syntax forms, relative dates and the errors you will hit.
- [votedWorkItems()](https://goingstellar.ro/reference/jql/votedissues.md): votedIssues() (now votedWorkItems()) finds work you voted for. See the issue in form, the failing doc example and queries for what you have not voted on.
- [watchedIssues()](https://goingstellar.ro/reference/jql/watchedissues.md): watchedIssues() lists the Jira issues you watch, up to 32,000 IDs. Syntax, the watchedWorkItems() alias, tested examples and errors.

## Operators

- [CHANGED](https://goingstellar.ro/reference/jql/changed-operator.md): CHANGED finds work items whose field was edited, with FROM, TO, BY, AFTER, BEFORE, DURING and ON. Tested examples and unsupported fields.
- [CONTAINS (~)](https://goingstellar.ro/reference/jql/contains-operator.md): The ~ operator searches text fields for words, wildcards and phrases. Tested examples, what matched, and the exact errors for unsupported forms.
- [DOES NOT CONTAIN (!~)](https://goingstellar.ro/reference/jql/does-not-contain-operator.md): The !~ operator removes work items whose text matches a word. Where it works, how it treats several words and empty fields, tested on Jira Cloud.
- [Equals (=)](https://goingstellar.ro/reference/jql/equals-operator.md): The = operator matches work items whose field holds exactly one value. Where it works, where it stops, and examples tested on Jira Cloud.
- [Greater than (>)](https://goingstellar.ro/reference/jql/greater-than-operator.md): The > and >= operators compare dates, versions, numbers and priorities in JQL. Which fields allow them, how dates are read, with tested examples.
- [IN](https://goingstellar.ro/reference/jql/in-operator.md): IN matches a field against a list of values, a shorter form of several OR conditions. Syntax, tested examples with functions, and the errors to expect.
- [IS](https://goingstellar.ro/reference/jql/is-operator.md): IS in JQL only works with EMPTY or NULL. Find work items with a missing due date, component, label or description, and learn which fields refuse it.
- [IS NOT](https://goingstellar.ro/reference/jql/is-not-operator.md): IS NOT EMPTY finds work items where a field has a value. Examples for due dates, parents and labels, plus the votes example in the docs that does not work.
- [Less than (<)](https://goingstellar.ro/reference/jql/less-than-operator.md): The < and <= operators find older, smaller or earlier values in JQL. Which fields allow them, how date-only values behave, with tested examples.
- [Not equals (!=)](https://goingstellar.ro/reference/jql/not-equals-operator.md): The != operator excludes one value from a field, but it also drops empty fields. How to bring them back, with examples tested on Jira Cloud.
- [NOT IN](https://goingstellar.ro/reference/jql/not-in-operator.md): NOT IN excludes work items whose field holds any value from a list. How it treats empty fields, how to add them back, and examples tested on Jira Cloud.
- [WAS](https://goingstellar.ro/reference/jql/was-operator.md): WAS finds work items that currently have or once had a field value, with BY, AFTER, BEFORE, DURING and ON. Tested examples and real errors.
- [WAS IN](https://goingstellar.ro/reference/jql/was-in-operator.md): WAS IN finds work items that had any of several values in their history. Syntax, predicates like DURING and BY, and examples for status and assignee.
- [WAS NOT](https://goingstellar.ro/reference/jql/was-not-operator.md): WAS NOT finds work items that never had a value, such as a status or assignee. Syntax, BEFORE and DURING predicates, and the traps with unassigned work.
- [WAS NOT IN](https://goingstellar.ro/reference/jql/was-not-in-operator.md): WAS NOT IN finds work whose field was never any value from a list. Allowed fields, date predicates, and the errors you will hit, tested on Jira Cloud.

## Keywords

- [AND](https://goingstellar.ro/reference/jql/and-keyword.md): AND joins JQL conditions so a work item must match all of them. Examples for stand-ups and overdue lists, and how AND mixes with OR without brackets.
- [EMPTY](https://goingstellar.ro/reference/jql/empty-keyword.md): EMPTY finds work items where a field has no value. Examples for missing due dates, versions and sprints, and the fields that refuse it.
- [NOT](https://goingstellar.ro/reference/jql/not-keyword.md): NOT reverses a JQL condition or a bracketed group. Examples with status, text search and groups, and why NOT field = x also hides work with an empty field.
- [OR](https://goingstellar.ro/reference/jql/or-keyword.md): OR widens a JQL search so a work item can match either condition. Examples for labels, priorities and late-or-undated work, and the bracket trap with AND.
- [ORDER BY](https://goingstellar.ro/reference/jql/order-by.md): ORDER BY sorts JQL results by fields, ASC or DESC. Examples for priority, due dates and rank, where empty values land, and fields that refuse sorting.

## Questions and answers

### Why does Jira say "Expecting operator but got 'item'"?

The query starts with "work item in", as in Atlassian's current examples. JQL reads "work" as a field name. Write issue in instead, for example issue in watchedWorkItems().

### Why does Jira say "Field 'space' does not exist"?

The docs call projects spaces now, but the JQL field is still project. Write project = KEY.

### Is JQL case sensitive?

Not for field names, keywords, function names or project keys: PROJECT = WEB, project = web and assignee = currentuser() all run (checked on Jira Cloud, November 2026). Leaving out the parentheses is different: assignee = currentUser runs without an error and matches nothing.

