Hi,
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...
Hi Marc,
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!
Hi, thanks for your quick help.
Indeed, this solves my issue!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.