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 firstname.lastname@example.org ./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.
Missing deadlines is one of the biggest problems every team lead wants to avoid when dealing with managed services. When the customer contracts your company to help with IT services it is expected th...
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