It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to start with Jira using Groovy

John Doe Sep 18, 2015

Are there any examples I can start practicing with when learning Jira? Maybe from the beginner to intermediate level would be really helpful 

1 answer

1 accepted

3 votes
Answer accepted
Tomasz Stec Sep 18, 2015

Hi,

From my expirience start practicing groovy is simple if you have some JAVA programming basis. Groovy is special script language that fully accepts JAVA syntax. Means if you have java code, you can pass it to Groovy interpreter and it will work (i don't know how about JAVA 8, but up to JAVA 7 syntax is fully compatible). If you are targeting Groovy development in JIRA environment so you also need some basic idea about JIRA JAVA API.

I started practising groovy using Script Runner's 'Script Console' and an open project in Eclipse. Eclipse's code completion is very helpful if you don't know the JIRA API entirelly. Then just put it into Script console and run.

Returning to Groovy you should go through some Groovy tutorial (easily found using goole) to learn basics about closures, managing arrays/lists/maps, generally collections. There are many convenient methods/tricks which can speed up your programming. Personally i go through this tutorial but only with issues i needed.

Generally if you have not JAVA and JIRA API basics it will be very challanging for you. Anyway, good luck!

JamieA Sep 18, 2015

Couple of additional resources: http://igorpopov.io/2014/11/24/rocking-with-jira-script-runner/ and https://scriptrunner.adaptavist.com/latest/common/DevEnvironment.html. Plus quite a lot more useful stuff floating around on the interwebs.

Prabu Sivagnanam Jun 04, 2019

How to get API Token from JIRA Server (Note:Not for Jira cloud), Actually i am trying to push some records from Salesforce to JIRA..So i need it

 

Previously in my another POC i was able to connect from SFDC to JIRA cloud by the API token from JIRA cloud (profile --> Manage your Account-->Security-->API token-->Create and manage API tokens--> Manage your account-->API tokens)

 

But in JIRA Server instance dont know from where to get API Token

 

Regards,

Prabu

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Next-gen

Introducing subtasks for breaking down work in next-gen projects

Teams break work down in order to help simplify complex tasks. This is often done iteratively, with tasks being broken down into smaller tasks and so on until the work is accurately captured in well-...

864 views 12 14
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you