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

Scriptrunner tutorial for beginners available (for usage in Jira Software)?

Hello,

Being a Scriptrunner beginner and a Java dummie, does anyone have any handy tutorials or instructions for me for getting familiar with (simple) scriptrunner coding? I don't have to get a Scriptrunner goeroe, but understand and write simple parts of coding. I have seen the Scriptrunner Introduction, but without any basis, that's not that simple. Thank you and kind regards.

2 answers

1 accepted

10 votes
Answer accepted

Indeed, Script Runner documentation definitely has scope for improvement when it comes to beginner tutorials, may be have script console embedded into the site so that new users can play around the various features of the plugin without breaking much. 

I have been using the plugin for over 5 years now and here's how I learned it.

Read the documentation quite well, it takes time and patience but that's the only way - https://scriptrunner.adaptavist.com/latest/jira/ 

And especially major features like workflows and listeners. Also, In the beginning I tried writing scripts in the "Script console", it's available when you install the plugin.

Script Runner uses Groovy which is basically a dynamic language executed on the JVM, some decent tutorial here - https://www.tutorialspoint.com/groovy/index.htm 

Recently I gave a webinar wherein I have presented all the major features of the plugin, along with lot of samples - https://www.youtube.com/watch?v=ufNACtDxyD8

And last but not the least, is to read  the previous posts which you find on this forum related to the plugin as lot of posts have excellent code samples.

Thank you for quick response, Tarun. I think I can go forward from here. 

Glad to know that Sandra, if you are satisfied with the answer, then please accept/upvote so that others are helped as well.

@Tarun Sapra I watched your video...thanks! But what's really needed is a "Hello World" equivalent of just "getting started." That is what's missing. Reading the docs does not get there...If you go through built in scripts for, say, adding a subtask, it really seems to say nothing. So, a few Hello World getting started video would be beyond awesome.

Like # people like this

Hi Greg,

 

Did  you get any "Hello World" equivalent for groovy script on JIRA ?

 

Regards,

Prabu

@Prabu Sivagnanam Hi Prabu, never found any equivalent for a 'Hello World" Scriptrunner/groovy script. I asked the ScriptRunner people about it, and they responded that it was a nice idea...no further interest. It's probably while cPrime's Power Scripts will eventually overtake ScriptRunner...complacency

@Greg Elofsonthank you for your prompt response! some other expert asked me to try with webhooks if its simple functionality.I will try to learn Webhook and will use it for my implementation

 

https://community.atlassian.com/t5/Jira-Core-questions/how-to-start-development-with-JIRA/qaq-p/1086992?utm_campaign=mentions_reply&utm_content=post&utm_medium=email&utm_source=atlcomm#M43315

 

Regards,

Prabu

Like shabrad likes this

Thanks for the useful info @Tarun Sapra

Hi @Greg Elofson 

I created this Hello World video a while back: https://youtu.be/Nf4UX86o2n8

Let me know if it helps. 

Ravi

Like # people like this

Thank you for creating the startup script.

Ravi, just seeing this now...excellent! I subscribed to your youtube channel, too. Kudos.

Like Ravi Sagar -Adaptavist- likes this

I am glad it was useful. Thanks.

Suggest an answer

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

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

375 views 1 3
Join discussion

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