I'm quite new to ScriptRunner, and am wondering how to have my post-functions take a file path to the script, rather than pasting inline script.
I need the same post-function script for transitions in several workflows, so I'd rather direct each to the file path of one script rather than pasting the same inline code for each.
That way, I can update the script once rather than for each workflow I've set it up for.
When applying a custom groovy script post-function to a workflow transition, I'm met with the following menu - note the Script | File toggle over the code area isn't there!
Is there no way to give it a path to follow rather than always having to write inline script?
Edit: Well, sh*t, guess that's how new I am to this :p
Yup, I noticed as soon as I had posted this!
Sometimes there will be a script file field, other times there are the toggle buttons above the inline script area.
Would be nice if it was consistent, guess I just have to learn each form now!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Matt
As I remember if you want move your script to files (IMHO this is a very good idea) you should put it in home directory.
More information you can find in other community posts:
Regards,
Seba
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.