Forums

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

Which Programming language to write post function inline script in jira work flow ,groovy or python

hanmantpatil
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!
February 8, 2019

Hi ,

I have Jira work flow where need to create jira project for a user ,create the Bitbucket project and Confluence space . Need to add users for respective application as well from same workflow.

To accomplish above in Jira , planning to develop the post function scripts and scripted field as well to call the REST API's of other applications like Bitbucket  and Confluence .

From my basic research we can use Groovy and Python , Please suggest which has more advantages .

2 answers

1 vote
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.
February 8, 2019

@Carlos Ivan Martin [DEISER]has given you a better answer than I was about to type, but I wanted to add a little bit more background.  Jira is written in java on its back-end and then uses some other related "languages" for building up the pages you see (velocity, webwork etc).  Post functions and fields are best written in Java, because that's what Jira uses on the back-end. 

Groovy can (in Jira) be thought of as a language that lives on top of Java - it is a mostly successful attempt to make Java code easier and friendlier to use.

Python is a great language too, but it is not really aligned with Java anywhere near as well as Groovy is.

So, I would like to answer your question with "Groovy".  In second place, Java, and despite loving Python, it is a very low third place when you're coding inside Atlassian applications.

0 votes
Carlos Ivan Martin [DEISER] February 8, 2019

Hi @hanmantpatil,
in my opinion, an advantage is to be able to use the API JAVA to collect any type of information within the script and send it later by API REST, in addition to using Jira's own objects. This is easier with Groovy.

 

Best regards

Carlos

Suggest an answer

Log in or Sign up to answer