Uploaded image for project: 'Jira Cloud'
  1. Jira Cloud
  2. JRACLOUD-71435

Less than or equal to (<=) operator does not work correctly towards dates

XMLWordPrintable

    • 1
    • 15
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Problem Definition

      The functionality of the operator Less than or equal to (<=) is not working correctly towards dates.

      JIRA will return the issues that were created before the specified date, but not the ones created on that date.

      For example, issue created on 1 April 2018 can’t be found using the below JQL

      createdDate <=2018-04-01
      

      This is because it will search for issues that are created before 2018-04-01 00:00:00.

      Steps to reproduce

      • Create an issue via CSV, with created date = 2018-04-01;
      • Search for: createdDate <=2018-04-01.

      Expected results

      The issue with created date 2018-04-01 will be returned in the search.

      Actual results

      The issue with created date 2018-04-01 is not returned in the search.

      Workaround

      Search for the date 1 day after the desired one.

      For example, you want to look for issues that were created at or before 2018-04-01:

      • createdDate <2018-04-02.

            Unassigned Unassigned
            akaurtuteja Ammrit Preet Kaur Tuteja (Inactive)
            Votes:
            27 Vote for this issue
            Watchers:
            18 Start watching this issue

              Created:
              Updated: