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

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

3 votes
Answer accepted

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!

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.

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

Community showcase
Published in Jira

Jira Cloud for Google Sheets: Automatically Refresh Your Data!

Remember that time you realized it was possible to refresh your Jira data in Google sheets with just one click? What if we told you that you can now get the latest data with no clicks at all?! Zero! ...

172 views 1 7
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