Whats the best way to have a JIRA workflow execute a PowerShell Script?

David Jensen October 23, 2018

Can anyone provide some guidance as to the best way to go about executing a PowerShell script via a workflow in JIRA Service Desk or if it is possible? Is there a particular add-on that could be leveraged to kick off the script?  

Scenario: Ticket Submitted to service desk. Issue is then reviewed and transitioned which fires a post function that kicks off the script. The script would need to have a variable in it that pulls data from a custom field on the ticket.  

2 answers

2 votes
Henrique Bittencourt
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 6, 2018

Hi David!

Jira doesn't provide this functionality out-of-the-box, but there are a few alternatives that you can use to call an external script:

  1. You can use the ScriptRunner for Jira add-on that extends Jira functionality and allows you to create a script in a post-function that calls an external script, there's even an example on Using ScriptRunner to call external application that can help you get started.
  2. You can use Webhooks to call an external service that can trigger the script that you want. That would require you to create the external service that listens for the HTTP call that webhooks provide. For more details, take a look at Managing webhooks and our Webhooks development guide.

Furthermore, both solutions will require some configuration to implement (and that isn't covered by the Atlassian Support) so an alternative is to reach some of the Atlassian Solutions Partners that can assist you with it.

Thanks.

David Jensen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 9, 2018

Henrique - Thanks for the guidance!

0 votes
Oleksandr Tynetalo September 4, 2019

Hi David,
Have you reached your goal?

Suggest an answer

Log in or Sign up to answer