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 .
@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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.