Forums

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

How to execute jar on any create issue event in JIRA?

Gaurav Jain July 1, 2019

I want to execute jar on any event happening on JIRA. ex. When I create an issue in JIRA I want to execute a jar which is located on JIRA server location.

1 answer

1 accepted

0 votes
Answer accepted
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 1, 2019

Hello,

You would need a scripting app for it like Power Scripts, ScriptRunner, Automation for Jira, MyGroovy, Groovioli.

If you want to use the Power Scripts app, then you could create a post function with a code like this:

return system("java -jar path_to_your_jar_file");
Gaurav Jain July 1, 2019

while creating an issue in JIRA when i click on create button I want to trigger a jar, How can i do that?

Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 1, 2019

add this post function to the create transition

Gaurav Jain July 2, 2019

Whenever I am trying to run batch file script on Issue create event using following code its showing me errors can you please guide me on this how can I do it. I am adding my this code in ".sil" file.

 

string[] command = {"cmd.exe", "/C", "Start", "D:\\JIRA\\MyJars\\NileshTest.bat"};
Process p = Runtime.getRuntime().exec(command);

Suggest an answer

Log in or Sign up to answer