JQL field Created does not work with equal operator in Jira Datacenter/Server.


Platform Notice: Data Center - This article applies to Atlassian products on the Data Center platform.

Note that this knowledge base article was created for the Data Center version of the product. Data Center knowledge base articles for non-Data Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

In this article we are describing a scenario where JQL to query all issues created on a specific date, e.g. "project = "ProjectName" AND Created = "2023-09-15". This JQL however returns an empty result set.

Environment

Jira 8.x, 9.x

Cause

  • JQL (Jira Query Language) allows user to search issues in Jira based on certain criteria. However, the "=" operator does not work with the "created" function because "created" is a date field, and "=" expects a specific value to compare against.
  • JQL field "created" represents a point in time, and it's highly unlikely that user will be able to pinpoint the exact millisecond a particular issue was created.
  • Instead of using the equal (=) operator, user should use operators like ">", "<", ">=", "<=", "between", and "during". Here are some examples

    1. To find issues created after a specific date:
       `created > "2023/01/01"`
    
    2. To find issues created before a specific date:
       `created < "2023/01/01"`
    
    3. To find issues created within a specific date range:
       `created between "2023/01/01" and "2023/01/31"`
    
    4. To find issues created during a specific date (For example: 2023/01/01):
       `created >= "2023/01/01" and created < "2023/01/02"`
    Note: When "2023/01/01" is mentioned, Jira internally translates it to "2023/01/01 00:00:00".







Last modified on Mar 13, 2025

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.