[Plugin ScriptRunner] My script in a post-function is not running. Can Jira find my script? Problem with directory?

Hello,

I am using JIRA and Script Runner plugin . I am trying to run a script in a post-function through a script existing in a file path.

I think i am doing the steps correctly. Moreover, i am putting my file in this directory:

../atlassian-jira/scripts/test.groovy

The file scriptTeste is my script. The variable catalina_home is point to "C:/Program Files/Atlassian/JIRA/bin". The folder "atlassian-jira" is in "C:/Program Files/Atlassian/JIRA". I create de folder "scripts".

However, when the transition occurs, nothing happens. It seems that my script is ignored, because it is not executed (a field value should change, but it is not happening). On the other hand, no error is showed.

I do not know what is the problem. I tried to chance de directory, the code, etc., but the problem continues. Do I need restart something?

Any sugestion? Can someone help me?

Thanks a lot in advance!

2 answers

This widget could not be displayed.
Henning Tietgens Community Champion Sep 20, 2012

Hi, do you tried to enable logging for Script Runner by modifying the log4j.properties as described on https://studio.plugins.atlassian.com/wiki/display/GRV/Script+Runner in chapter logging?

After that, and a restart, you should try to run the postfunction script and take a look into catalina.out. You may post the error here to get more help.

Henning

This widget could not be displayed.

hi, did you find a solution? I am facing same problem now. 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

505 views 3 18
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