I have ScriptRunner for Jira and use it for many things, validators, post-functions, Listeners, etc.
I also have a custom, quite long and complex ScriptRunner for Jira script developed in the console.
Whenever I want to execute it with certain text parameters, I have to copy it from a local file, paste it in the console, type the parameter in the actual code and then run it. (image 1)
Is there any other way?
Can I save the script somewhere and have it executed with a manual parameter field that then sends this to the script?
I imagine some kind of page like the ones in "Built-In Scripts", for example the "Config exporter" where it has a text parameter field called "Base path for output" and then you have the Run button that executes something on the back using this parameter, then displays the result. (Image 2)