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

Better matching for @mention

XMLWordPrintable

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      NOTE: This suggestion is for JIRA Cloud. Using JIRA Server? 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)

        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

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

              Created:
              Updated:
              Resolved: