Forums

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

Running custom scripts

Siavosh Kasravi
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.
June 27, 2018

Is it possible to write arbitrary scripts to do things outside Jira triggered by a status change for example? Like sending a POST request to a website when a task is resolved and processing the response.

 

If so, in what scripting languages it can be done?

1 answer

1 accepted

2 votes
Answer accepted
Tansu Akdeniz
Community Champion
June 27, 2018

Hi @Siavosh Kasravi,

Yes, you can use default jira webhooks feature. https://developer.atlassian.com/server/jira/platform/webhooks/

If you want to write a custom script, you can do it via groovy code.  But you need the Script Runner add-on. (Doc)

Or create your own plugin.

Tansu Akdeniz

Siavosh Kasravi
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.
June 29, 2018

If I create my own plug-in it should be in groovy?

Nic Brough -Adaptavist-
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.
June 29, 2018

You can write plug-ins in whatever you want.  But, Jira Core is written in Java in the back-end, with a number of other things that help it with UI (Soy, Velocity, Webwork etc). 

It does not use Groovy itself, so you'd need to think about how to enable that in your plug-in.  But there are loads of plug-ins that do use Groovy, and it's not hard - a couple of includes/imports seem to do it for ScriptRunner for example.

Suggest an answer

Log in or Sign up to answer