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 email@example.com ./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.
It’s very important to have access to the workflow process from anywhere. Especially if you manage the work of others. There is no difference whether you’re out of office, or drive a ca...
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