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

Better matching for @mention

    XMLWordPrintable

Details

    • 1
    • 4
    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      NOTE: This suggestion is for JIRA Server. Using JIRA Cloud? See the corresponding suggestion.

      Problem Definition

      The @mention feature uses a "contains" match for the REST query to find suggested users. The JavaScript part of the feature uses a "starts with" match.

      In some environments this means no users will be suggested even though there are users that could be shown. This makes it hard to use the @mention feature.

      Example:

      • User types "@joh".
      • REST API returns 10 records: mention-rest-joh.txt
      • Very few records are shown b/c this customer uses "LastName,FirstName" and random account IDs.

      Suggested Solution

      • Make the JavaScript use a "contains" search just like the REST call.
      • Split on "," in addition to space characters to find the parts of the Display Name.

      mention-search-contains.patch.txt

      (This patch could not be tested because I had trouble running JIRA from source. It's offered to help identify the relevant code)

      Attachments

        1. mention-joh.png
          55 kB
          Morgan Knicely
        2. mention-rest-joh.txt
          2 kB
          Morgan Knicely
        3. mention-search-contains.patch.txt
          3 kB
          Morgan Knicely

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mknicely Morgan Knicely
              Votes:
              6 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated: