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.
-
Find work items that were created based on relative dates:
created >=-8w
This query will return tickets created within the last 8 weeks. You can also change it for days (e.g., -5d).
-
Find work items resolved between specific dates:
resolved >= 2026-01-01 AND resolved <= 2026-02-01
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”.
-
Find work items updated on a specific date (January 12, 2026):
updated >= 2026-01-12 AND updated <=2026-04-13
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.
-
Find work items due between specific dates:
due > 2026-10-01 and due < 2026-10-31
This query shows work items with due dates in October 2026.
Status searches in Jira
-
Find work items in multiple statuses:
status IN (“Status1”, “Status2”, “Status3”)
For one particular status, put, for example, “status = In Progress”
-
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”
-
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)
Text searches with JQL
-
Find work items with the specified keyword in the summary, description, and comments.
text ~ “key”
-
Use double quotes to search for an exact phrase.
text ~ “\”exact phrase\””
10. Specify the field you want to search in.
summary ~ “keyword”
description ~ “keyword”
comment ~ “keyword”
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”)
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 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()
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”)
16. Show tickets that changed status to Done in the last 60 days.
status = Done AND status CHANGED AFTER -60d
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.