Issue History for Jira

How to use the most popular JQL queries in Jira

Date searches with JQL

With JQL, you can search for tasks created, updated, or resolved within a specific or relative date range. Here are some instances of date-related queries.

  1. Find work items that were created based on relative dates:

created >=-8w 

jql-created-filter.png

This query will return tickets created within the last 8 weeks. You can also change it for days (e.g., -5d).

  1. Find work items resolved between specific dates:

resolved >= 2026-01-01 AND resolved <= 2026-02-01

jql-resolved-filter.png

This query will return work items resolved between January 1, 2026, and February 1, 2026.

Use the correct JQL syntax → yyyy-mm-dd (to set date) or yyyy-mm-dd hh:mm (to set date and time)

For “2026-01-01”, the system internally treats this as “2026-01-01 00:00:00”.

  1. Find work items updated on a specific date (January 12, 2026):

updated >= 2026-01-12 AND updated <=2026-04-13

jql-updated-filter

This query will show work items updated between 12 a.m. on the 12th of January and 12 a.m. on the 13th of April.

  1. Find work items due between specific dates:

due > 2026-10-01 and due < 2026-10-31

jql-due-date-filter

This query shows work items with due dates in October 2026.

Status searches in Jira

  1. Find work items in multiple statuses:

status IN (“Status1”, “Status2”, “Status3”)

For one particular status, put, for example, “status = In Progress”

jql-status-filter
  1. Find work items where the status changed from In Progress to Done after some date.

status CHANGED FROM “In Progress” TO “Done” AFTER “2026-01-01”

jql-status-update
  1. Find the list of work items where the status was Done for a current assignee during the last month.

status WAS Done AND assignee WAS currentUser() AND updatedDate >= startOfMonth(-1) AND updatedDate <= endOfMonth(-1)

jql-status

Text searches with JQL

  1. Find work items with the specified keyword in the summary, description, and comments.

text ~ “key”

jql-text-filter
  1. Use double quotes to search for an exact phrase.

text ~ “\”exact phrase\””

jql-phrase-filter

10. Specify the field you want to search in.

summary ~ “keyword”

description ~ “keyword”

comment ~ “keyword”

jql-summary

History searches with JQL

To search for updates that have been made in the past, you can use WAS or CHANGED operators. JQL works only for some fields with history changes, which include Assignee, Fix Version, Priority, Reporter, Resolution, and Status.

11. Find work items where the status was Done for some assignee during last year.

status WAS Done AND assignee WAS Emily Johnson DURING (“2025-01-01”, “2026-01-01”)

jql-assignee-filter

12. Find work items where priority changed from medium to low during the past 24 hours.

priority CHANGED FROM Medium TO Low AFTER -1d

13. Find work items updated by some users during the past two weeks.

issuekey IN updatedBy(“Emily Johnson”, “-2w”)

jql-updated-issues

JQL combinations

In this section, you will find examples of JQL combinations that can be helpful in different situations.

14. Find work items currently part of an open sprint but not planned for any future sprints.

Sprint in openSprints() AND Sprint not in futureSprints()

jql-sprint-filter

15. Find bugs specifically in the “Development” project that are either in the “To Do” or “In Progress” status.

project = DEVS AND type = Bug AND status IN (“To Do”, “In Progress”)

jql-project-filter

16. Show tickets that changed status to Done in the last 60 days.

status = Done AND status CHANGED AFTER -60d

jql-status-changed-filter

17. Find work items in the “MyProject” project that were created within the last 10 days and present them in descending order based on their creation date.

Project = MyProject AND created > startofday(-10) order by created DESC

18. Find work items where the assignee is a specific user, and the status has changed from “Open” to “In Progress” within the last week.

Assignee = NAME AND status CHANGED FROM “Open” TO “In Progress” AFTER -1w

Have questions or need assistance? Contact SaaSJet Support, and we will get back to you.