I am currently able to send email using SMTPMailServer.send, however this method appears to be blocking and returning only when the email has been sent.
What I would like is for the function just to put the email in the JIRA email queue and then return immediately which appear to be the behaviour for standard JIRA notification such as "Send notification on new comment for watched issues".
Is there a way to use the JIRA standard notification engine when sending custom email via groovy SR script?
import com.atlassian.jira.component.ComponentAccessor import com.atlassian.mail.Email import com.atlassian.mail.queue.SingleMailQueueItem def email = new Email("jamie@") email.setSubject(..) email.setBody(..) def item = new SingleMailQueueItem(email) ComponentAccessor.getMailQueue().addItem(item)
Atlas Camp is our developer event which will take place in Barcelona, Spain from the 6th -7th of September . This is a great opportunity to meet other developers and get n...
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!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG