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 add a script runner custom script

Jens Kisters Jun 13, 2016

I have tried for over an hour now to find out where to add scripts that are listed when you add a script runner post function to a jira workflow.

I cant find out how i can locate the folder where i can put custom post-function scripts.

I found out that there are "script roots" i assume thats where i need to put my groovy scipts.
Doc claims a script root folder is created automatically but that is not the case.
Setting the environment variable like this
set JAVA_OPTS=%JAVA_OPTS% -Dplugin.script.roots=/usr/opt/scripts

didnt help either.

The Adaptavist documentation is not very helpful either.

Thanks in Advance

3 answers

0 votes
Mahesh S Jun 13, 2016

Have you gone through this doc?

https://jamieechlin.atlassian.net/wiki/display/GRV/Upgrading+to+3.0

I hope this helps you.

0 votes
JamieA Jun 13, 2016

Are you sure there is not in one in your JIRA home directory?

Can you provide a directory listing of that directory?

You can also set additional ones using that system property, but it's harder for me to debug why that's not working. I don't even know what file you have added that to.

> The Adaptavist documentation is not very helpful either

Well, I agree we are missing some tutorials for beginners.

0 votes
Joy Melendez Jul 20, 2018 • edited Jul 25, 2018

What is the correct path to host the groovy scripts in ScriptRunner 5.4.12?

Answer to my question here: https://community.atlassian.com/t5/Marketplace-Apps-questions/What-is-the-path-for-a-Scripted-JQL-Function-groovy-script/qaq-p/850587

Suggest an answer

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

Friday Fun: What's your best vacation planning hack?

Let's face it, work can be challenging but fulfilling, especially when you enjoy the challenges thrown at you.  However for me, nothing compares to going on vacation (or holiday as some of you m...

540 views 26 4
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