Using "Within the last " option for basic issue search fetches unexpected results

XMLWordPrintable

    • 1
    • Minor

      Issue Summary

      "Within the last X (interval)" option in the basic issue search is showing unexpected results.

      In the general sense, the word "within" indicates a duration between 2 timestamps.

      For example:

      If user specified criteria for date as "Within the last 2 days", the search should show issues where date (Any date field picker field) is from current timestamp to two days in the past. But, currently even issues with future days are shown. 

      Steps to Reproduce

      1. Set due date (Or any other field of type date picker) for Issue A = 1 day in the past and set due date for Issue B = 1 day in the future. 
      2. Run the Basic issue search : Select Due date -> "Within the last" option. Select 2 days.
      3. Run the search.

      Expected Results

      Only Issue A should be shown. 

      Actual Results

      Both Issue A and Issue B are listed in search results.

      Issue B has due date in the future and hence it should not be listed in the search results. 

      Workaround

      • Use either the `Between` or `In the range` options in the basic issue search UI.
      • Or, use Advanced search and add "DATE FIELD" <= now() in the JQL to eliminate results for future date. 

       

            Assignee:
            Unassigned
            Reporter:
            Sumit Fartode
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: