Going Stellar

Home/JQL reference

JQL keyword

OR keyword in JQL: syntax and examples

OR joins conditions so that matching any one of them is enough. It widens a search instead of narrowing it. Use it across different fields; for several values of one field, IN is shorter.

Syntax

c
o
n
d
i
t
i
o
n
1
 
O
R
 
c
o
n
d
i
t
i
o
n
2
 
[
O
R
 
c
o
n
d
i
t
i
o
n
3
 
.
.
.
]

Works with

  • Joins: any two clauses, on the same field or on different fields
  • Pairs with: AND and NOT, and brackets to group the OR branches
  • Alternative: IN, for several values of a single field

Examples

labels = checkout OR labels = demo

Items tagged with either label, for a review that covers two themes at once.

Run on Jira Cloud on .

priority = High OR priority = Highest ORDER BY created DESC

Everything that needs fast attention, newest first. ORDER BY sits after the last OR.

Run on Jira Cloud on .

project = WEB AND (duedate < now() OR duedate is EMPTY) AND statusCategory != Done

Open work that is already late or has no deadline at all. Both are problems for a planning meeting, and the brackets keep the other two conditions applying to both.

Run on Jira Cloud on .

status = "In Progress" OR (status = "To Do" AND priority = Highest)

Work underway plus the one kind of waiting work that cannot wait. A bracket inside an OR groups the branch that has its own AND.

Run on Jira Cloud on .

assignee = currentUser() OR reporter = currentUser()

Every item you are involved in as owner or as the person who raised it.

Run on Jira Cloud on .

Pitfalls

  • A trailing AND does not reach back over an OR. project = WEB OR project = MOB AND priority = High means "all of WEB, or high-priority MOB". The bracketed form (project = WEB OR project = MOB) AND priority = High applies the priority to both projects (checked on Jira Cloud, November 2026).
  • The Atlassian example duedate < now() or duedate is empty looks at nothing but dates. It also lists finished work, because no clause mentions status. Add statusCategory != Done outside brackets, as in the third example.
  • OR on one field gets long fast. Ten statuses mean ten clauses, where status in (...) says the same in one. Keep OR for conditions on different fields or different shapes, such as a value and an is EMPTY check.
  • Do not put OR after ORDER BY. project = WEB ORDER BY created DESC OR priority = High is rejected, since ORDER BY must be the last part of the query.

Ready-made queries

Questions and answers

How do I mix OR and AND in one JQL query?

Wrap each OR group in brackets and join the groups with AND. Without brackets, the ANDs are evaluated first.

Sources

  1. JQL keywords (Atlassian Support, Jira Cloud)

Markdown version · All JQL pages