Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Where do I place A ScriptRunner script?

cbourner May 15, 2018

I have tried:

C:\Program Files\Atlassian\Application Data\JIRA\scripts

but Script Runner is not finding .groovy files there.

1 answer

2 votes
Alexey Matveev
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.
May 15, 2018

You need to put your scripts in the scripts folder in the Jira home path. You can find Jira Home if you open System->System Info and find the following variables:

jira home.png

cbourner May 16, 2018

Hey, thanks again for helping me out.

Yes, that's what I thought.  In my case, on Windows Server, this shows as:

C:\Program Files\Atlassian\Application Data\JIRA

There is a scripts folder - so I put a file with a .groovy extension in this.

I don't see this as an option to choose when I start typing a filename when setting up a Script Runner function.

Is it just that I need to wait until Jira "notices", or do I need to restart?

Alexey Matveev
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.
May 16, 2018

What is your Scriptrunner version? Suggestions for scripts are available only from ScriptRunner 5.3.0 and higher. Also open Add-ons-> Script Console and check script roots.

2000.jpegScript roots define location for your scripts

cbourner May 16, 2018

What I failed to notice is that files were, for some reason, ending in .groovy.txt.  So now this silly error is resolved, I have script suggestions working (version 5.3.26).

Problem solved - thanks very much for your help Alexey.

Alexey Matveev
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.
May 16, 2018

You are welcome. I am glad the problem has been solved

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events