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.
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hmm... it should be accessible, see attached screen and compare with yours.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks! I will continue to look for the problem comparing your configuration with mine.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.