Hello,
We are looking at adding a post function to a workflow transition that will execute a script (shell or ?) on a remote server when the transition is changed to "Approved". Something like:
ssh userdude@192.168.10.10 ./myscript.sh
Looking at "Power Scripts for JIRA", but I couldn't find any doc on how to do something like this. Has anyone else been able to do this and if so, what tool/plug-in did you use, etc. to make it work?
Hi Dave, there are quite a few ways to do something like this with Power Scripts.
Triggering the script on the remote system:
Which option you choose depends on the amount of data you need to send to remote system. The custom webhook will allow you to send JSON data that offers the most versatility when it comes to passing data to the remote system. However, if you don't have much data to pass then the call() routine would be the simplest to implement.
Once the script is triggered on the remote system then the system() routine is used to run the shell script. The nice part about this routine is that you can also receive a response from the shell script. With all 3 examples above a response can be received to indicate success or failure from the script on the remote system.
Hope this helps.
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.