Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can i search all comments that tag specific users?

Jesse Oveson January 31, 2019

Hello!

I am looking to be able to search any Comment that my boss is tagged in.


I feel like there is a way to do this (guessing thru an Advanced Search), but i do not know how or if its possible.


Does anyone know how to do this or have any insight if this is possible?


Thank you!

2 answers

1 vote
Bryan July 19, 2022

Using the User ID of the person works. Finding the user ID takes a few extra steps. Here's how to get it and use it:

 

  1. Click on the mention to pop up the account card:profile_card.jpg
  2. Click on "view profile". This will take you to a page with an address like https://example.atlassian.net/jira/people/fa362d8aaabf4d2d879b13b95a9c998b
  3. The User ID is the long string, which you can use in your JQL query:
    comment ~ "fa362d8aaabf4d2d879b13b95a9c998b"

 

This will return the stories that have comments with the mention, but not ones that only have comments written by the person.

0 votes
Payne
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 31, 2019

You can use the ~ contains operator and the username of the person of interest. e.g.

comment ~ payneseal

Jesse Oveson January 31, 2019

Hi Payne,

I think i have tried this.  But it seems to return JIRA tickets that the person has created a comment in as well as being tagged in a comment.

 

Is this what you experience also?  

Not perfect, but better than nothing so far!  :)

Payne
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 31, 2019

No, since it's looking for text in the comment, it's returning only issues in which the person is mentioned. I have verified this in my system (Jira Server 7.12.1).

Jesse Oveson January 31, 2019

Hmm.  

Interesting. Thanks for the info and help Payne.  

Jeff Anderson July 8, 2022

I think that only works if the user name is a string that won't show up elsewhere; it's not really searching for the tag but the string.   So if the user name is 'joan' and someone makes a comment about joan or forwards email from her, then this search will include those results.   I have tried a number of things such as 

@Joan

'@joan'

'@joan smith'

\u0040joan

'joan smith'

and all  either fail, include too much, or include nothing

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events