I am integrating Jira with another system and want to call a local python script during a close transition on an Jira issue.
How can I invoke the local script using scriptrunner? The python script is in a local directory on my Jira server.
Additionally, I'd like to be able to pass an argument(close reason) to the python script, if possible. Can I do that with scriptrunner?
A very blunt approach (which will try to run anything you want)
def thingToRun = "Command (including parameters) to run".execute()
x being the number of milliseconds to let it run before killing it as a suspected zombie (I think it's milliseconds, been a while since I used it)
Then you can interrogate thingToRun.exitValue() to see what the return code was.
I can't get this to work at all.... I was wondering if you could help. I can put the absolute path location on the linux server where Jira server is hosted and it can't find file/folder. I've also tried to add the file to the JIRA_Home/scripts directory with same result... (and several other areas).
So, I would like to pull the offenseID and a custom_field(closing reason) and pass that to the script.
When to use CSV importer When managing your processes in Jira, there are many occasions where you need to create a lot of tasks. Creating them one by one will cost you a lot of time and effort and i...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events