Jira Resnd Error Queue Automatically

Rob B
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 17, 2019

Hi,

Our outlook when down for a few hours so we had about 300+ emails fail to go out and get stuck in the error queue.
Does the error queue try and resend them automatically or do we have to manually 'Resend error queue' every time?  Is there a way to get the error queue to resend every couple of hours?

Thanks

1 answer

1 accepted

1 vote
Answer accepted
Patrick December 23, 2019

You can write a small Service:

import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.mail.queue.MailQueue

MailQueue mailQueue = ComponentAccessor.getMailQueue()
mailQueue.resendErrorQueue()
Rob B
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.
January 13, 2020

Hi Patrick, is this in script runner or the normal Jira system services? Thanks

Patrick January 13, 2020

Hi Robert,

im using ScriptRunner here.

ScriptRunner moved Services to Jobs in their latest Release: my-jira.com/plugins/servlet/scriptrunner/admin/jobs

Rob B
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.
January 14, 2020

mailscreenshot.PNGSorted! Thanks Patrick :)

Suggest an answer

Log in or Sign up to answer