Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-73694

Unpredictable results for filter queries referring to duplicated filter names

    XMLWordPrintable

Details

    • 8.22
    • 3
    • Severity 2 - Major
    • 1
    • Hide
      Atlassian Update – 22 June 2023

      Dear Customers,

      Thank you for taking the time to file and comment on this issue. Feedback like yours helps us release valuable Jira features that solve problems for a greater customer base. To that end, we aim to keep our issues up-to-date so they accurately reflect current customer needs. Based on the impact, we’ve decided to move this issue to our short-term backlog.

      The workaround for this bug is as follows: If available, provide any reference where the customers can find more information on or a workaround for their issue.

      Currently existing workaround is to use filter ID instead of filter name when building a search query.

      Please continue watching this ticket for future updates and changes in the timeline that impacts your work.

      Best regards,

      Artur Falborski
      Jira DC Software Engineer

      Show
      Atlassian Update – 22 June 2023 Dear Customers, Thank you for taking the time to file and comment on this issue. Feedback like yours helps us release valuable Jira features that solve problems for a greater customer base. To that end, we aim to keep our issues up-to-date so they accurately reflect current customer needs. Based on the impact, we’ve decided to move this issue to our short-term backlog. The workaround for this bug is as follows: If available, provide any reference where the customers can find more information on or a workaround for their issue. Currently existing workaround is to use filter ID instead of filter name when building a search query. Please continue watching this ticket for future updates and changes in the timeline that impacts your work. Best regards, Artur Falborski Jira DC Software Engineer

    Description

      Description:

      When two or more filters that have the same name are visible to a user, a query on 'filter="<filtername>"' returns mixed results from all filters.

      According to JRASERVER-18035, this is the design intent. But it means that the results of the query are unpredictable, depending on actions by other users. If initially, my own filter is the only one by that name or the only one I can see, I get one result. If another user creates and/or shares a filter with the same name, suddenly my query returns different results.

      JSWSERVER-20872 suggests one way of resolving this issue, by requiring all filter names to be unique across the instance.

      Attached to this ticket, there is a screen recording video demonstrating the problem.

      This affects all Jira versions!

      Proposed Solutions:

      Make filters names unique such as the filter IDs are.

      Another approach that would reduce the instances of undesired results but still allow the "feature" in cases where people want it would be to treat filters the same as Sprints, which is another case where there can be multiple objects with the same name. If you select a Sprint from the autocomplete list or click enter after typing the full sprint name, the Sprint id is populated into the query, instead of the Sprint name. You can still force the filter to reference the Sprint by name if you want, but in the majority of cases, the Sprint name is converted to the ID as the filter query is being written.

      If this was done for filters, most filters would end up referencing other filters by id instead of the name, which would give predictable results regardless of the actions of other users.

      This approach would require changing the autocomplete behavior for filters in queries to match Sprints. Looks like it's currently doing the same search as Search Filters (without quotes), which means it's hard to find a multi-word filter name in the list to select it.

      Workaround:

      Instead of using the filter name in the search, use the filter ID.

      Attachments

        Issue Links

          Activity

            People

              d996197e70d9 Artur Falborski
              85117f08a273 Guz
              Votes:
              8 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated: