Hello,
You could either write your own plugin, or you could use one of the plugins in the Marketplace.
For example, you could use the Power Actions add-on:
https://marketplace.atlassian.com/apps/1210979/power-actions-for-jira-create-wizards?hosting=server&tab=overview
This plugin will let you to add a button and then you can execute a bash script with this method:
https://confluence.cprime.io/display/SIL/system
It looks like you're new here. Sign in or register to get started.