To add a date range in a Jira filter, you must use Jira Query Language (JQL) to define a start and end point for a date field. The most common method is using the "greater than or equal to" (≥) and "less than or equal to" (≤) operators combined with the AND operator. For example, to find issues created between January 1st and January 31st, you would use: created ≥ "2024-01-01" AND created ≤ "2024-01-31".
Adding a date range allows you to isolate work completed in a specific sprint, track tickets that have gone stagnant over a certain period, or generate reports for a specific calendar month. While Jira's basic search provides some date options, JQL is required for precise, custom ranges.
What You'll Need
- A Jira account with permissions to create and save filters.
- Access to the "Issues" or "Filters" view in your Jira instance.
- The specific date field you wish to filter by (e.g., Created, Updated, Resolved, or a custom Date Picker field).
Step-by-Step
- Log into your Jira instance and navigate to the top navigation bar. Select Filters and then click View all issues (labels may vary slightly depending on your Jira version or Cloud/Data Center installation).
- By default, Jira often opens in "Basic" search mode, which uses dropdown menus. To enter a specific date range, click the Switch to JQL button located on the right side of the search bar.
- In the JQL text box, type the name of the date field you want to filter. Common fields include
created,updated,resolved, orduedate. - Enter the first operator to define the start of your range. Use
≥(greater than or equal to) or>(greater than). - Enter the start date in the format
"YYYY-MM-DD". Ensure the date is enclosed in double quotation marks. For example:created ≥ "2024-01-01". - Type
ANDin uppercase to link the start date to the end date. - Enter the date field again, followed by the second operator
≤(less than or equal to) or<(less than). - Enter the end date in the same
"YYYY-MM-DD"format. Your complete query should look like this:created ≥ "2024-01-01" AND created ≤ "2024-01-31". - Press Enter or click the magnifying glass icon to run the search.
- If the results are correct, click Save as at the top of the screen, give your filter a name, and click Submit to save it for future use.
Common Mistakes
- Incorrect Date Format: Using formats like "MM/DD/YYYY" or "DD-MM-YYYY" will trigger a JQL error. Jira requires the ISO standard
"YYYY-MM-DD". - Missing Quotation Marks: Forgetting to wrap the date in double quotes often leads to syntax errors, as Jira may misinterpret the hyphens as subtraction operators.
- Case Sensitivity for Operators: While the field names are generally not case-sensitive, using
andinstead ofANDcan occasionally cause issues in older versions of Jira; using uppercase is the best practice. - Using the Wrong Operator: Using
>when you actually want to include the start date itself. If you want the filter to include issues from the exact start date, always use≥.
Tips
- Use Relative Dates: If you need a filter that updates automatically (e.g., "the last 7 days"), use relative time instead of hard dates. For example:
created ≥ -7d. - Combine with Other Criteria: You can narrow your date range further by adding project or status requirements. Example:
project = "Marketing" AND created ≥ "2024-01-01" AND created ≤ "2024-01-31". - Use "startOfDay()": For more dynamic queries, you can use functions like
created ≥ startOfDay("-14d")to capture everything from the start of the day two weeks ago. - Verify with Basic Search: After running your JQL, you can switch back to Basic mode to see if the date filters are reflected in the dropdowns, which helps verify the logic.
Troubleshooting
If your filter is not returning the expected results or is throwing an error, try these steps in order:
- Check for Typos: Ensure there are no trailing spaces inside the quotation marks and that the field name (e.g.,
created) is spelled correctly. - Verify Date Range Logic: Ensure the start date is actually earlier than the end date. If the start date is "2024-02-01" and the end date is "2024-01-01", the filter will return zero results.
- Check Field Permissions: Ensure the date field you are querying is actually present on the screens of the issues you are searching for. If a custom date field is not associated with a project, the query may fail.
- Clear Browser Cache: If the JQL editor is lagging or not executing the search, refresh the page or clear your browser cache.
Frequently Asked Questions
Can I use a date range in Basic search mode?
Basic search allows you to filter by "Created" or "Updated" using predefined options (like "Last 24 hours"), but for a specific custom start and end date, you must switch to JQL.
How do I filter for issues that have no date assigned?
To find issues where a date field is empty, use the is EMPTY operator. For example: duedate is EMPTY.
Can I filter by a date range for a custom field?
Yes. Instead of using created, use the name of your custom field in quotes if it contains spaces. For example: "Target Date" ≥ "2024-01-01" AND "Target Date" ≤ "2024-01-31".
What is the difference between -7d and startOfDay("-7d")?
-7d looks back exactly 168 hours (7 days) from the current minute. startOfDay("-7d") looks back to 00:00 of the day seven days ago, which is usually better for daily reporting.
Can I use a date range to find issues updated in the last month?
Yes, use the updated field with a relative date: updated ≥ -30d. This will automatically shift as time progresses.