We have several workflows that are using the simple script condition,
- Script workflow function : Does not allow the action unless all sub-tasks have the Completed resolution set.
These were implemented prior to our upgrade of both JIRA and Scriptrunner, from 6.1.6 to 6.3.15 and from 2.1.16 to 3.0.16 respectively. When we try to add this same condition to a workflow in the upgraded environment, it will not accept the chosen resolution. When we click the preview button, it shows the correct value, but when we hit Update, the value is reset to Any. I have verified this by viewing the workflow xml files.
This is the correct xml that was from the workflow that was created before the upgrade
<condition type="class">
<arg name="RESOLUTION_FIELD_NAME">11</arg>
<arg name="scriptFileName">
com.onresolve.jira.groovy.canned.workflow.conditions.AllSubtasksResolvedCondition
</arg>
<arg name="class.name">com.onresolve.jira.groovy.GroovyCondition</arg>
</condition>
This is the xml from the workflow that is being changed after the upgrade
<condition type="class">
<arg name="RESOLUTION_FIELD_NAME"/>
<arg name="canned-script">
com.onresolve.scriptrunner.canned.jira.workflow.conditions.AllSubtasksResolvedCondition
</arg>
<arg name="class.name">com.onresolve.jira.groovy.GroovyCondition</arg>
</condition>
The Resolution_Field_Name is not accepting the argument value. Please help!