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

Searching assignable users in assignee field retrieves multiple results when user being searched is registered in multiple directories

    XMLWordPrintable

Details

    • 8.22
    • 2
    • Severity 3 - Minor
    • 1
    • Hide
      Atlassian Update – 27 October 2023

      We're happy to announce that the fix for this issue was backported to JSW 9.4.11 (JSM 5.4.11).

      Best regards

      Kamil Cichy
      Senior Software Engineer

      Show
      Atlassian Update – 27 October 2023 We're happy to announce that the fix for this issue was backported to JSW 9.4.11 (JSM 5.4.11). Best regards Kamil Cichy Senior Software Engineer

    Description

      Issue Summary

      Affects versions of Jira 8.22.0 and later.

      When searching for users in the assignee field it has been found that duplicate results will be retrieved if the same user is registered in multiple user directories.

      This is reproducible on Data Center: yes)

      Steps to Reproduce

      1. Create a user in a directory configured in Jira (or synchronize a connected directory where a user is added to Jira.
      2. Using the same details create a second user in a different directory.
      3. Place directory 2 above directory 1 in the user directories configuration.
      4. In an applicable project where the user an assignable user attempt to assign an issue to the user added previously.

      Expected Results

      • A single result should appear when searching for the user to be selected as the assignee on the issue.

      Actual Results

      • Multiple results appear for the user being searched as displayed below

      • This is a regression introduced because of JRASERVER-73023
      • applies to assignable and mentionable user search only
      • Restarting jJira does not resolve this as indicated in JRASERVER-68456 since the user cache is not causing the behavior.

      Workaround

      1. In the search results pick the top one from the list of duplicates as it is the user found in the highest directory in the user directory configuration.
        kcichy: I realised this is not a valid workaround, because the duplicates are sorted by directory id, not directory order as defined in the user directory configuration.
      2. Remove user duplicates if feasible

      Attachments

        Issue Links

          Activity

            People

              kcichy Kamil Cichy
              44f973aba2e6 David McCoy
              Votes:
              6 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: