I have seen several other posts about this, however I can not get the intended outcome.
I want to find all mentions of a user (in this example, myself). I use the query
comment ~ currentUser()
And I do indeed find mentions of myself. However Only in old projects, not in any new projects (projects started ~1month ago). If add a filter for a specific (new) project, the query returns nothing
Is this just a bug with Jira? Am I doing something wrong?
Thanks in advance!
I understand that you are using Jira Cloud and want to find all the @ mentions in comments of a particular user. It appears that you can find some of these with the currentUser() function, but not all examples appear here.
I am actually surprised to see that you could use that specific JQL function in the comment search field at all. When reviewing the documentation of that function in Advanced searching - functions reference - currentUser(), you can see that the only supported operators for this are = and !=. However since text fields like comment only have supported use of ~ or !~ the text fields like these are not unsupported to use that kind of function. I am surprised to see currentuser() work at all in this context to be honest. I have only ever seen it used in regards to userfields directly, like reporter, assignee, or custom fields of type user.
There is an outstanding feature request that relates directly to this topic in JRACLOUD-27594 - JQL search for @mentions. This is not something that Jira has historically been able to do, so a feature request is more appropriate here than a bug ticket would be. I would recommend voting that issue up.
I have reviewed this topic and I can't seem to find a valid work-around that exists for Jira Cloud today. It seems there could be other 3rd party plugins for Jira Server that might help here to search on this, but Jira Cloud does not appear to have a working solution.
I can see why this would be helpful to have. I have tried to update that existing feature request to detail the problem here further and try to explain why this would be helpful. Sorry I don't have a better answer right now for this one, but I would recommend watching this issue for updates. I can't promise this issue will be worked anytime soon, but it feels like this ability could bring real value to lots of users.
I tried the
BUT "comment ~ <<your User UD>>" didn't work for me on JIRA clouds
HOWEVER when I changed it a bit as shown in the below line it did work ->
SOLUTION --> comment ~ '123456'
(For example sake please consider my user ID as 123456 and yes I used single quotes before and after my user ID)
Hey @Jim Ryan , have a shot at the below JQL, looks like it works for the problem statement you gave me.
comment ~ currentUser() and updatedDate >= -3d
The first parameter "comment ~ currentUser()" filters all the tickets across all projects which have the current user @ mentioned in the comments from the dawn of time.
The second parameter "updatedDate >= -3d" filters in only the recently updated ones cause I believe that's what most folks are interested in. In this case '-3d' stands for the tickets updated in the last 3 days.
Feel free to change the number 3 in the second parameter, which controls the time period or range of recent tickets you'd like to see.
Let me know if this helped ya.
Thanks for this suggestion! I was trying to search in a custom text field for mention with the following query, but nothing was returned, though there should have been one issue. Am I missing something?
project = ProjectName AND fixVersion in (Version1, Version2) AND "Testing status" ~ "accountID:557058:e1f9e60e-8a47-4d93-8014-2b10add40d82" ORDER BY updated DESC
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events