Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Script Runner: Send Custom Email not sending email

Tudor Hofnar July 2, 2015

Hi,

I am trying to set up a Post Function on the Resolve Issue Transition which sends a custom email using the Script Runner plugin.

I have SMTP set up correctly and sending the test email form JIRA works, I receive it in my inbox. Outgoing Mail is Enabled.

The Send a Custom Email Post Function is set up as in the two attached images. Note that I do change my email address, the one in the screenshots is simply an example.

image2015-7-2 9:58:20.png

image2015-7-2 9:58:12.png

Now, when I publish the workflow and go to the same issue that evaluated to true in the preview and Resolve it, no email is sent. Is there somewhere to check if an error was thrown or how can I go about debugging this?

Thanks,

Tudor

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
JamieA
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.
July 5, 2015

The condition is probably failing, possibly due to the things you are comparing being different types. Can you test it without any condition and see if it works then?

Also worth check the "mail" log. 

Tudor Hofnar July 6, 2015

You are right, it was the condition. Is the "mail" log somewhere on the JIRA server or do you mean the one for the Mail Server (Exchange in our case)? I can't see any mail related log on the JIRA server logs folder and would like to know just for future reference.

JamieA
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.
July 6, 2015

home/og/atlassian-jira-outgoing-mail.log

0 votes
GabrielleJ
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.
July 2, 2015

Check the logs for any error or hints. Also, make sure that the workflow you put this post-function is being used by the Issue Type of your issue.

Tudor Hofnar July 2, 2015

Thanks @Gabrielle Bautista [ACP-JA]. I have checked the logs on the server for all I see is a catalina and an access log and neither were updated around the same time as I resolved the issue. Looking in the catalina log I don't see anything relevant "Jul 02, 2015 8:40:47 AM org.apache.jasper.compiler.TldLocationsCache tldScanJar INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time." The workflow is definitely being used by the Issue Type of my issue.

TAGS
AUG Leaders

Atlassian Community Events