Kick start for Groovy?

I am new to groovy can you please give me some kick start so that i can start writing my own groovy scripts. It would be great help.

3 answers

This widget could not be displayed.
Henning Tietgens Community Champion May 20, 2013

Groovy is based on Java, a good starting point is http://groovy.codehaus.org/. You can directly use the documented Java API of JIRA (see Atlassian API Reference). I think a good way to start ist to look at the examples in the Script Runner documentation and the scripts provided by Script Runner and maybe the Atlassian developer docs.

Henning

Henning Tietgens Community Champion May 21, 2013

For changing the status you have to transition the issue through the workflow. You could use the built-in fast transition postfunction of Script Runner or you can do it on your own like described here. https://developer.atlassian.com/display/JIRADEV/Performing+Issue+Operations

Thanks Henning..

This widget could not be displayed.

I want to write a groovy script in which i need to change the statuts of the issue. can you please tell me how should proceed further

This widget could not be displayed.
Mizan Community Champion May 26, 2013

You can use the script runner panel and try to fetch values from JIRA using the JIRA Api's .

You can try this as your first script . You can start with fetching current user , customfield value for a specific issue , number of issues , Project lead , etc

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

200 views 1 3
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you