I get this error, not sure why the CloneIssue constructor is no longer found:
2019-11-27 12:16:06,853 ERROR [workflow.AbstractScriptWorkflowFunction]: Script function failed on issue: CRPT-49, actionId: 421, file: com/wumed/jira/scriptrunner/postfunctions/CRIScreenPostFunction.groovy
groovy.lang.GroovyRuntimeException: Could not find matching constructor for: com.onresolve.scriptrunner.canned.jira.workflow.postfunctions.CloneIssue()
I can't seem to find the API documentation either to see if something changed for "com.onresolve.scriptrunner.canned.jira.workflow.postfunctions.CloneIssue"
JIRA version: 8.5.1
Scriptrunner version: 22.214.171.124
They have changed the way of implementation see the following documentation page on there website, it also has a example on how to fix this issue by using the creatBean function instead of doscript:
Hope it helps :)
Added the code piece for if they would remove this page:
def inputs = [
'FIELD_TARGET_PROJECT' : 'FOO',
'FIELD_SELECTED_FIELDS': null, //clone all the fields
] as Map<String, Object>
def executionContext = [
def cloneIssueBean = ScriptRunnerImpl.scriptRunner.createBean(CloneIssue) cloneIssueBean.execute(inputs, executionContext)
Hello Community! Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...
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