I want to reindex issues with scripted fields, and implemented the example as described in the Scriptrunner documentation (under "JQL Searches in Script Fields").
When running the code, I get an error
2018-01-26 16:42:04,550 ajp-nio-8009-exec-17 ERROR MMN 1002x4544387x4 1tgasxs 10.129.0.102 /rest/api/2/version/17327 [c.o.scriptrunner.runner.AbstractScriptListener] Script function failed on event: com.atlassian.jira.event.project.VersionReleaseEvent, file: EVSListeners\PLMConfigListener.groovy
groovy.lang.GroovyRuntimeException: Could not find matching constructor for: com.atlassian.jira.jql.query.IssueIdCollector(org.apache.lucene.index.ReadOnlyDirectoryReader)
This example worked in the past, but recently we did an upgrade from Jira 7.1.7 to 7.4.3 and Scriptrunner from 4.3.15 to 5.2.2. Do not know if there is a relation...
The constructor that takes an argument was removed in Jira 7.3.3. You can fix your script by changing line 53 to:
def issueIdCollector = new IssueIdCollector()
Effectively if you remove the parameter the new version of the collector should work as expected.
I hope this helps!
Introducing Jira Cloud for Excel Here at the product integrations team at Atlassian, we are thrilled to announce the new Jira Cloud for Excel add-in! This add-in lets you export Jira data directly ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events