JQL to get all issues in which certain user has been somehow involved

Ignacio Pulgar Community Champion Dec 30, 2015

Is there a straight-forward way of obtaining all issues somehow related to a specified user?

As a workaround, I've come up with this long and incomplete JQL:

assignee was currentUser() OR worklogAuthor = currentUser() OR reporter was currentUser() OR watcher = currentUser() OR voter = currentUser() OR assignee changed by currentUser() OR fixVersion changed by currentUser() OR priority changed by currentUser() OR reporter changed by currentUser() OR resolution changed by currentUser() OR status changed by currentUser()

The JQL above will miss any issues were the only action of the user has been adding a comment.

Any ideas? @Nic Brough [Adaptavist]?

2 answers

1 accepted

1 vote

Heh, not a chance, directly.  You will need to do one of two things:

1) Find or write a (potentially horried) JQL function to enable this searching.  I've seen a couple that try to do it, and most of them fall over spectacularly when there's a lot of data to work with, so I can't recommend them.

2) Find or write a field that gathers the information.  The best way to do that is a scripted field, as that is updated on every comment/update and hence doesn't load the system in any significant way.  There's a really good one built into the JIRA Toolkit which is a really good starting point, although it is hard coded.  The "Participants" field in there gives you "Current assignee, reporter and anyone who has commented" all in a simple multi-user-picker field.  Makes searching a doddle (and reporting is quite handy - something the JQL function can't help you with!)

 

Ignacio Pulgar Community Champion Dec 30, 2015

Thank you so much, Nic!

Have you tried with "comment ~ currentUser()"?

Ignacio Pulgar Community Champion Dec 30, 2015

Hi, Asael. Yes, but that query returns just comments in which currently logged in user has been mentioned, and not the issues in which that user has added a comment. Anyway, it is useful for getting issues where currentUser()'s action might be needed.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,322 views 14 20
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot