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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.