I am using Jira automation to a run a Groovy script from Scriptrunner. Can I use that script to run a Python script? It's in the same directory, and it works successfully when I run it manually, but now I just need to run it automatically when the Groovy script is run.
You should be able to execute a command from your script.
https://groovy-lang.gitlab.io/101-scripts/basico/command_local-en.html
This command can be python ./mypytonscript.py for instance.
Regards
Thanks for the link, that's helpful!
One question I have is about how to actually execute the command. When you set a string equal to "command".execute() then does the command actually execute when the script is run? Or is there something else I have to do?
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.