Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to run batch files from Jira

Edward Facundo August 31, 2023

I would like to run a batch file from a Jira test case that will start programs.

I have a shared folder on our network where the batch file exists that Jira could point to.

2 answers

0 votes
Aron Gombas _Midori_
Community Champion
September 1, 2023

The Better DevOps Automation app has an automation action to execute Groovy scripts,  intuitively called the Run Groovy script action.

This action is a versatile tool, because this can be used to run not only Groovy scripts, but Linux shellscripts, Python programs and even batch files from Jira! It is a powerful way to execute external logic written in your preferred language as part of an automation rule. 

In the case of Python, an execution looks like this in the rule configuration:

run-groovy-python-bat-sh.png

Note that although the sample recipe explains an automation that is triggered by a Git commit, you can use any other trigger to run batch files. The recipe will give you the idea if you are familiar with Jira Automation in general.

(Discl. it is a free app developed by our team.)

0 votes
Mirek
Community Champion
August 31, 2023

Welcome @Edward Facundo 

Maybe you can use Webhooks for that and trigger it when you want in a specific place in the process.

https://developer.atlassian.com/server/jira/platform/webhooks/

Suggest an answer

Log in or Sign up to answer