Going Stellar

Home/JQL reference

JQL operator

IN operator in JQL: syntax and examples

IN checks whether a field holds one of several values, written as a comma-separated list in parentheses. It is the same as chaining = conditions with OR, but shorter. Lists can mix plain values and functions.

Syntax

f
i
e
l
d
 
I
N
 
(
v
a
l
u
e
1
,
 
v
a
l
u
e
2
,
 
.
.
.
)

Arguments

ArgumentWhat it doesOptional
listValues separated by commas inside parentheses. Quote values that contain spaces.no

Works with

  • Fields: any field that takes a list of values, such as Status, Project, Priority, Assignee, Labels, Key
  • Operators: pairs with NOT IN for the opposite
  • Not with: a single value without parentheses

Examples

project in (WEB, MOB) AND status in ("In Progress", "To Do") ORDER BY project, status

Active and planned work on two projects in one list. Values with spaces are quoted.

Run on Jira Cloud on .

labels in (checkout, demo)

Items carrying either label. Without IN this would be two label conditions joined by OR.

Run on Jira Cloud on .

key in (WEB-1, WEB-2, MOB-1)

Pull a hand-picked set of items by key, for example the ones named in a meeting.

Run on Jira Cloud on .

status in (Open, Reopened) AND priority in (High, Highest)

Urgent items waiting for action.

Run on Jira Cloud on .

status in ("To Do", "In Progress") AND assignee in (currentUser(), EMPTY) AND project in (WEB, MOB)

Work that is yours or has no owner yet, a list for picking up the next task. EMPTY and functions sit in the list like any value.

Run on Jira Cloud on .

Pitfalls

  • The parentheses are required. status in "Done" fails with "Operator 'in' does not support the non-list value '"Done"' for field 'status'."
  • An empty list is a parse error: "Error in JQL Query: Expecting either a value, list or function but got ')'." Build the list before you save the query.
  • List functions such as membersOf() and openSprints() go with IN, not with =.
  • IN is equivalent to OR over equals. It does not make a text match: for words in a summary you need ~.

Ready-made queries

Questions and answers

Is IN the same as OR in JQL?

For one field, yes. The docs say reporter IN (tom, jane, harry) is the same as three = conditions joined by OR.

Sources

  1. JQL operators (Atlassian Support, Jira Cloud)

Markdown version · All JQL pages