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

Sandra Meessen April 16, 2018

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

17 votes
Answer accepted
Tarun Sapra
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 16, 2018

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.

Sandra Meessen April 16, 2018

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

Tarun Sapra
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 16, 2018

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

Like Esra Cansu KOSE likes this
Greg Elofson October 18, 2018

@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
Prabu Sivagnanam May 24, 2019

Hi Greg,

 

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

 

Regards,

Prabu

Greg Elofson May 24, 2019

@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

Prabu Sivagnanam May 26, 2019

@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 # people like this
Rajkumar May 8, 2020

Hi Tarun

Thanks for sharing the video

It really helped us

Regards

Rajkumar

Like Ravi Sagar _Sparxsys_ likes this
0 votes
Deleted user October 9, 2018

Thanks for the useful info @Tarun Sapra

Ravi Sagar _Sparxsys_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 13, 2019

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
Tim Cook October 22, 2019

Thank you for creating the startup script.

Greg Elofson October 24, 2019

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

Like Ravi Sagar _Sparxsys_ likes this
Ravi Sagar _Sparxsys_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 24, 2019

I am glad it was useful. Thanks.

Suggest an answer

Log in or Sign up to answer