Skip to main content
JQL (Jira Query Language) is the query language used by jira_search to find issues. This guide covers the most useful patterns.

Basic Syntax

JQL queries follow the pattern: field operator value
project = "PROJ" AND status = "In Progress"

Common Operators

OperatorDescriptionExample
=Exact matchstatus = "Done"
!=Not equalstatus != "Closed"
~Contains textsummary ~ "bug fix"
!~Does not containsummary !~ "test"
INMatch any in liststatus IN ("Open", "In Progress")
NOT INNot in listpriority NOT IN ("Low", "Lowest")
ISNull checkassignee IS EMPTY
IS NOTNot nullassignee IS NOT EMPTY
>, <, >=, <=Comparisoncreated >= "2024-01-01"

Common Fields

FieldDescriptionExample
projectProject keyproject = "PROJ"
statusIssue statusstatus = "In Progress"
assigneeAssigned userassignee = currentUser()
reporterIssue creatorreporter = "john.doe"
priorityPriority levelpriority = "High"
type / issuetypeIssue typetype = "Bug"
labelsIssue labelslabels = "frontend"
sprintSprint namesprint = "Sprint 42"
createdCreation datecreated >= "-7d"
updatedLast updatedupdated >= "-24h"
resolvedResolution dateresolved >= startOfMonth()

Useful Functions

FunctionDescriptionExample
currentUser()Logged-in userassignee = currentUser()
startOfDay()Start of todaycreated >= startOfDay()
startOfWeek()Start of this weekupdated >= startOfWeek()
startOfMonth()Start of this monthresolved >= startOfMonth()
endOfDay()End of todaydue <= endOfDay()
now()Current timeupdated >= now("-1h")

Practical Patterns

My Open Issues

assignee = currentUser() AND resolution = EMPTY ORDER BY priority DESC

Sprint Burndown

sprint = "Sprint 42" AND status != "Done" ORDER BY rank ASC

Recent Bugs

type = "Bug" AND created >= "-7d" ORDER BY created DESC

Unassigned High Priority

assignee IS EMPTY AND priority IN ("High", "Highest") ORDER BY created ASC

Issues Updated Today

updated >= startOfDay() AND project = "PROJ" ORDER BY updated DESC

Overdue Issues

due < now() AND resolution = EMPTY ORDER BY due ASC
project IN ("PROJ", "DEVOPS", "INFRA") AND status = "In Progress"

Text Search Across Fields

text ~ "database migration" ORDER BY relevance DESC

Tips

Always include ORDER BY in your queries for deterministic, predictable results.
Use relative dates ("-7d", "-1w", "-1M") instead of absolute dates for reusable queries.
Some JQL functions like issueHistory() are Cloud-only. Check your Jira version’s documentation for supported functions.