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

Saved Filters not showing up in Filter Search (View all filters) due to hyphen or underscore in the filter's name

    XMLWordPrintable

Details

    Description

      Summary

      If the saved filter's name has an hyphen or underscore on its name, the search will not work correctly in the View all filters page.

      Steps to reproduce

      • Perform an advanced search, save it as a name separated by hyphen (e.g. wa - moon);
      • Navigate to Jira home -> Issues and filters -> View all filters;
        • Searching for was will return the filter:
        • Searching for wa - will not retrieve the filter:
        • Searching by the full name will not retrieve it either:
        • Searching by moon will retrieve the filter:

      Expected results

      The filter should be retrieved in all of those search scenarios.

      Actual results

      The scenarios where the hyphen is included in the search do not work.

      Workaround

      Search by the first part of the name, or by the last one.

       

      Notes

      Impact on APIs

      The same behaviour can be observed when using the /rest/api/3/filter/search API endpoint.

      For example, if there are 2 filters in an instance called "Support Issues - ALL" and "Support Issues", the following happens:

      • Not expected: when searching for "Support Issues - ALL" via the API ("/rest/api/3/filter/search?filterName=Support%20Issues%20-%20ALL"), the results only contains "Support Issues" }}and not {{"Support Issues - ALL" }}while only {{"Support Issues - ALL" should be returned{{}}
      • Expected: when searching for "Support Issues" via the API ("/rest/api/3/filter/search?filterName=Support%20Issues"), both filters "Support Issues" }}and {{"Support Issues - ALL" are returned as expected because the filterName attribute does a partial match{{}}

      Attachments

        Issue Links

          Activity

            People

              akonkolowicz Adrian Konkolowicz
              pkirkeby Pelle Kirkeby (Inactive)
              Votes:
              31 Vote for this issue
              Watchers:
              55 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: