Going Stellar

Home/JQL reference

JQL keyword

AND keyword in JQL: syntax and examples

AND puts two or more conditions into one query, and a work item has to satisfy every one of them to appear. Each extra AND narrows the list. It is the keyword behind almost every saved filter, from a stand-up board to an overdue report.

Syntax

c
o
n
d
i
t
i
o
n
1
 
A
N
D
 
c
o
n
d
i
t
i
o
n
2
 
[
A
N
D
 
c
o
n
d
i
t
i
o
n
3
 
.
.
.
]

Works with

  • Joins: any two clauses, including clauses with functions, IN lists and brackets
  • Pairs with: OR and NOT, and brackets to set the order
  • Not with: ORDER BY, which must come after the last AND clause

Examples

project = WEB AND status = "In Progress" AND priority = High

The urgent work that someone is touching right now. A short list to open a stand-up with.

Run on Jira Cloud on .

project in (WEB, MOB) AND statusCategory != Done AND duedate < now()

Everything late and still open across two projects, ready to send to the leads on Monday.

Run on Jira Cloud on .

project = WEB AND (status = "To Do" OR status = "In Progress")

Work that is either waiting or underway, kept inside one project. The brackets turn the two statuses into a single condition.

Run on Jira Cloud on .

project = WEB AND created >= startOfMonth() AND created <= endOfMonth()

The month's intake for one project. Two conditions on the same date field mark the start and the end of a range.

Run on Jira Cloud on .

(assignee = currentUser() OR reporter = currentUser()) AND statusCategory != Done ORDER BY updated DESC

Open items you own or raised, most recently touched first. AND ties the bracketed pair to the open-work check, and ORDER BY closes the query.

Run on Jira Cloud on .

Pitfalls

  • AND is evaluated before OR when there are no brackets. project = WEB AND status = "To Do" OR status = "In Progress" is read as "WEB and To Do" plus "anything In Progress", so work from other projects slips in. Writing project = WEB AND (status = "To Do" OR status = "In Progress") keeps the list inside WEB (checked on Jira Cloud, November 2026).
  • Two AND conditions on a field that holds a single value never match. status = "To Do" AND status = "In Progress" runs without an error and finds nothing, because an item has one status at a time. Use OR or IN for "either" (checked on Jira Cloud, November 2026).
  • Some Atlassian examples still say "space". space = WEB AND status = "To Do" fails with "Field 'space' does not exist or you do not have permission to view it." The JQL field is project.
  • ORDER BY ends the query. project = WEB ORDER BY created DESC AND status = Done fails with "Expecting ',' but got 'AND'." Put every AND clause first.

Ready-made queries

Questions and answers

Does AND run before OR in JQL?

Yes. AND binds more tightly, so mixed conditions without brackets are grouped around the ANDs first. Add brackets whenever you mean something else.

Sources

  1. JQL keywords (Atlassian Support, Jira Cloud)

Markdown version · All JQL pages