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())
In case anyone is looking for an answer, all you need to fix it is include the following line before the search :
ThreadLocalSearcherCache.startSearcherContext()
Apparently you need to create new context for the search.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.