Forums

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

What do I need to do to use a Script file in Scriptrunner custom email post function?

Deleted user December 11, 2018

It is possible to use a file instead of Writing direct code for the Condition and Configuration part in the Scriptrunner custom email post function. However I do not manage to find the documentation that explains what the file name needs to be (name + extension) and where it should be placed so that i can be found. 

I have tried place a file called SendEmailCopyToRecipient.groovy in the Scripts folder located at  ..Atlassian\Application Data\JIRA which is the Location of Jira Local Home, but with no luck. 

1 answer

0 votes
fjodors
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.
December 12, 2018

Hi

Try to put file in specific location, and then use full path to file, for example

/opt/atlassian/jira/atlassian-jira/includes/<customFolderWithScripts>/myFile.groovy

and don't forget about permissions

Deleted user December 13, 2018

Thank you for your reply! I am not able to get that to work. I put the file in the log folder to be sure Jira has access to the folder but I still get file not found message.

fjodors
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.
December 14, 2018

Hmm... it should be accessible, see attached screen and compare with yours.

 

scriptFile.png

Deleted user December 14, 2018

Thanks! I will continue to look for the problem comparing your configuration with mine.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events