ScriptRunner: Add a script root for this path warning?

We are testing an upgrade of JIRA from version 6.1.3 to 6.4.5 and have updated the Script Runner plugin.  Now we are getting a Warning message in the logs every time a script is enacted via workflow.  Can you let me know why we are getting these and what we can do to fix these warnings so that we don't get them?  Is there a new way of handling the scripts in this version?

I tried searching the documentation but didn't find anything relating to a script root when running a script via workflow.  I could only find mention of it during a plugin section.

Here is the main part of the log message:

[onresolve.scriptrunner.runner.ScriptRunnerImpl] Add a script root for this path: <Path to .groovy file>

5 answers

I found this in the logs too, Wondering if calling scripts via path stored in a variable is somehow not supported anymore?

I found this in the ScriptRunner documentation:

https://scriptrunner.adaptavist.com/4.3.1/jira/#_script_roots

I moved all of my groovy scripts to the new default directory under $JIRA_HOME/scripts, modified the Script file location in my workflows, and the WARNING message no longer appears in the log file.

Hi Adam,

I have the same issue. JIRA version 6.3.4 and scriptrunner version 3.0.6. Nevertheless all scripts seem to work fine.

@Jamie Echlin [Adaptavist] - Can you advise why this warning would come? The groovy service runs properly, but the warning message is logged every time it runs.

We are also getting same warning, any idea how to remove such warnings. 

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

64 views 0 5
Read article

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