Run groovy script from linux command line

Pierre Mig February 24, 2015

When i have many scripts to run it gets annoying to copy/past on the "script console runner" on the JIRA web service.
I would like to run jira groovy script from shell script.

Is it possible to do it and how can i do ?

Regards,

1 answer

6 votes
JamieA
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.
February 24, 2015

I have the following defined as an external tool in IDEA... you can use something similar from a batch script:

curl -u admin:admin --header "X-Atlassian-token: nocheck" -X POST --data "scriptFile=$FilePathRelativeToSourcepath$" http://localhost:8080/jira/rest/scriptrunner/latest/user/exec/
Pierre Mig February 26, 2015

Thanks,

I am going to try it.

Martin Cleaver
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.
December 28, 2015

Nice.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events