Can issuefunction search by a custom field?

I have a query for issues that were not commented on by 'user' for a specified number of days:

issuefunction not in commented("by currentuser() after -3d")

However, I have a custom field called "Build Assignee" that I would like to use for the search instead of myself.  Something like:

issuefunction not in commented("by "Build Assignee" after -3d")

I've tried a few variations, but it seems the function wants either a specific user or currentuser().  

Is this possible?

1 answer

0 vote

That specific JQL function is something that the Scriptrunner plugin is adding to JIRA. 

That said the documentation on how that function works in over in ScriptRunner - Scripted JQL Functions.  

It does not appear that this function can use custom fields that contain user accounts, but that function does allow you use arguments like project roles, or group names in order to search for users that would match that criteria.  That probably isn't exactly what you are looking for here, but it might help.

I appreciate the response, Andy.  Unfortunately, no, the role/group functions won't work as everyone in my org has the same role and group.  

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,296 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