I'd like to execute an external (on the file system) script from Additional Issue Actions instead of having the code hard-coded in the transition. The use case is a couple of transitions we use in-house that clone the current issue into a "backport" kind-of project. So - we have two x->x transitions (Open->Open, etc) that execute the "Clone to Another Project" script that then executes a wodge of script to set various field values and such (nulling out things that are not applicable, setting the case assignee, etc).
Right now, the same script is copied into several transitions ( Open->Open, In Progress->In Progress, etc) that clone an existing JIRA case into a companion case (and set a bunch of other settings in the case).
What I'd like to know is this - how (if possible), from the "Additional issue actions" code block, execute the code in a file on the server (instead of copy/paste the code into multiple transitions).