I have just renamed the path of a groovy script. I have dumped the workflow configs to check I have got all instances and notice this entry where I have renamed. How can i update the scriptFileName? Or don't I need to bother?
<arg name="FIELD_SCRIPT_FILE">/app/localstorage/jira_home/groovy-scripts/emm-ready-for-qa.groovy</arg>
<arg name="scriptFileName">/sbclocal/apps/jira_home/groovy-scripts/emm-ready-for-qa.groovy</arg>
Hey Roy... did you check my answer to your other question? You are allowed to give feedback to answers
It really depends what version of Script Runner and JIRA you are using. It's always advisable to use relative paths for this reason, or script roots in version 3 of the plugin.
If you have just a few you can edit the workflows in the normal way, and update the paths.
(on JIRA 7.1.2, ScriptRunner 4.3.4)
As also need to review paths in the exported workflow xml (and possibly ammend and reimport), but in the exported xml the post function parameters are 'encripted':
<function type="class"> <arg name="FIELD_FUNCTION_ID">YCFgMTQzYWFmMGZmODgxYWJkNzE0NGE1NjA0MTIyZGJmMDIyZjhlMjZjNQ==</arg> <arg name="full.module.key">com.onresolve.jira.groovy.groovyrunnerrungroovy-function</arg> <arg name="FIELD_INLINE_SCRIPT"></arg> <arg name="canned-script">YCFgY29tLm9ucmVzb2x2ZS5zY3JpcHRydW5uZXIuY2FubmVkLmppcmEud29ya2Zsb3cucG9zdGZ1bmN0aW9ucy5DdXN0b21TY3JpcHRGdW5jdGlvbg==</arg> <arg name="class.name">com.onresolve.jira.groovy.GroovyFunctionPlugin</arg> <arg name="FIELD_SCRIPT_FILE">YCFgY29tL3JhZGJlZS9wb3N0ZnVuY3Rpb25zL0FwcHJvdmFsX2hvbGRfcG9zdGZ1bmN0aW9uLmdyb292eQ==</arg> </function>
Is there a way to cause the export to export/import the actual path name in 'FIELD_SCRIPT_FILE'?
(PS: the scripts are packaged as a plugin)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
They are not encrypted but they are encoded - https://scriptrunner.adaptavist.com/4.3.3/jira/releases/current-release.html#_base64_encoding_for_workflow_function_arguments
You can decode them... it doesn't matter if the args are encoded or not in the workflow.
It's true that some of the args don't need to be encoded and it would be clearer if they were not: https://productsupport.adaptavist.com/browse/SRJIRA-1965
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, have voted for the issue, your input will help me workaround this obstacle.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.