Can I use Scriptrunner expression JQL function with a scripted field?

Background:  I'm trying to create a filter which identifies the issues where the due date is before today and the last comment author is not the assignee.  Basically, I want to find all the past due issues where the assignee hasn't given a reason for being late.

 

To accomplish this, I first created a custom scripted field called Last Comment Author with this groovy script:

comment author code.PNG

It has a searcher configured:

searcher configured.PNG

What I'm trying to then do is run JQL like:

jql failure.PNG

As you can see it wants a searcher, but I have set and reset the searcher and indexed and reindexed JIRA, to no avail.

What am I doing wrong  here?

1 answer

Turns out it's a bug in the Scriptrunner expression function.  

https://productsupport.adaptavist.com/browse/SRJIRA-2375

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

77 views 0 5
Read article

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