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

JQL search for @mentions

XMLWordPrintable

    • 966
    • 48
    • 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.

      Status update - July 31, 2024

      Hi everyone,

      This is Jacqui from the JQL team in Jira Cloud.

      Thank you for your comments and feedback on this suggestion. I’ve read through all the comments to understand your individual use cases, and I’d like to give you an update.

      My team and I confirmed that searching for your own user mentions is currently available today, as raised in several comments already. You’re able to search for mentions in any text-search-supported field, such as description ~ currentUser() and comment ~ currentUser(). For context, search for mentions was broken in 2019 during the transition to the new issue view, but this was resolved in October 2020 in JRACLOUD-72207.

      As such, I will be marking this suggestion as closed.

      I’ve written a new Atlassian Community post with more details about searching for your own and other people’s mentions: How to search for your @mentions with JQL. I hope you find this useful.

      By the comments on this ticket, I understand that many users also need JQL functionality that enables searching for comments created in a certain time period. However, I ask that we distinguish this as a separate suggestion to the original ask on this ticket. If filtering by comment date in JQL continues to be important to you, please vote and comment on JRACLOUD-35765. This will allow us to track the impact and interest.

      If you have any questions, or the solution here isn’t working for you, the best way to reach us is by raising a support request. If JQL mentions search isn’t working for you, it may just be a matter of reindexing search tokens on your Jira site, which I’d be happy to help you with.

      Many thanks,

      Jacqui

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

      Problem Definition

      There is no way to search via JQL to get accurate results in regards to issues / comments were a user has been @Mentioned For example, users have noted that you can sometimes get results for an advanced JQL query such as

      comment ~ currentUser() 
      

      However the ~ operator is unsupported for use with that function per Advanced searching - functions reference - Atlassian Documentation.

      Also trying to search with a more basic set of terms like

      comment ~ username
      

      can sometimes return results, but in the current state of Jira Cloud it is not providing consistent  expected results (sometimes you see @ mentions here but not always), and given the recent changes to usernames in Atlassian Cloud, there does not appear to be a way to search via JQL for message content that includes @mentions

      Suggested Solution

      Creating a JQL function that can search for @ Mentions would be ideal
      Or extending the comment field to be searchable by user accounts mentioned within it

      Why this is important

      It would be very helpful to be able to search, filter, and generally organize issues where you have been mentioned directly.

      Workaround 1 (JQL)

      Taken from comments, below.
      Use the following JQL

      summary ~ currentUser() OR description ~ currentUser() OR comment ~ currentUser() 

      Workaround 2 (Slack integration)

      Slack can notify you when someone mentions you in Jira.

      Original description

      Would like to be able to create a filter to track my AT mentions

        1. comment.png
          comment.png
          47 kB
        2. image-2017-02-01-10-56-02-870.png
          image-2017-02-01-10-56-02-870.png
          93 kB
        3. no_result.png
          no_result.png
          9 kB
        4. screenshot-1.jpg
          screenshot-1.jpg
          16 kB

              9cd37cdfcb63 Jacqui Shadforth
              rmolenaar RoelandA
              Votes:
              993 Vote for this issue
              Watchers:
              375 Start watching this issue

                Created:
                Updated:
                Resolved: