Basic Queries
Operators & Functions
Time-Based Filters
Advanced Filters
Error Busting (Fix common JQL mistakes)
100

Write a query to find all issues assigned to the logged-in user.

assignee = currentUser()

100

What operator is used to find values within a set?

IN

100

Find issues updated today.

updated >= startOfDay()

100

Find issues in project 'DEF' assigned to 'JohnDoe'.

project = "DEF" AND assignee = "JohnDoe"

100

What's wrong with this query?

project = ABC AND status = 'Done'

Missing quotes around ABC. 

Correct query: 

project = "ABC" AND status = 'Done'

200

Find all unresolved issues in project 'ABC'.

project = "ABC" AND resolution = Unresolved

200

Write a query to find all issues created in the last 7 days.

created >= -7d

200

Find issues created before January 1, 2023.

created < "2023-01-01"

200

Show all issues in project 'XYZ' with more than 5 comments.

project = "XYZ" AND commentCount > 5

200

What's wrong with this query?

assignee IS NOT currentUser()

Incorrect use of IS NOT. 

Correct query: 

assignee != currentUser()

300

Query for issues with a priority of 'High' or 'Critical'.

priority IN ("High", "Critical")

300

Find issues where the description contains 'critical error'.

description ~ "critical error"

300

Write a query for issues due in the next 30 days.

duedate <= 30d

300

Find all issues with more than one label.

labels IS NOT EMPTY AND labels != ""

300

Fix this query: 

created >= startOfDay AND updated <= now

Missing parentheses. 

Correct query: 

created >= startOfDay() AND updated <= now()

400

Find issues labeled 'bug' that are not assigned.

labels = "bug" AND assignee IS EMPTY

400

Use a function to find issues resolved at the start of this month.

resolutiondate >= startOfMonth()

400

Find issues with due dates in the past.

duedate < now()

400

Query issues created by users in the group 'Developers'.

reporter IN membersOf("Developers")

400

What's wrong with this query? 

priority > 'High' 

Priorities cannot be compared with greater/less operators. 

Use IN or specific values.

500

Show all issues where the summary contains the word 'Upgrade'.

summary ~ "Upgrade"

500

What operator finds fields that do not have a value?

IS EMPTY

500

Find issues resolved between October 1, 2023, and October 31, 2023.

resolved >= "2023-10-01" AND resolved <= "2023-10-31"

500

Find all issues with sub-tasks in project 'ABC'.

project = "ABC" AND issuetype = Sub-task

500

Fix this query: 

status ~ 'In Progress'

~ cannot be used with status. 

Correct query: 

status = "In Progress"