Hello,
I am creating an automation within Insight. I have tested the script with Insight Script Console and it works as expected, however the automation failing.
The trigger I have set up is comment added and the condition is for objects within schema.
I am trying to update an object when an JQL is true.
I am using Jira 8 and this is the line when it fails
//line when code failes
def openIssues = SearchResults.search(user, query, new PagerFilter())