Forums

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

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
Contributor
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
Contributor
January 13, 2020 edited

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.PNG Sorted! Thanks Patrick :)

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, aafp, jira migration, marketing collaboration, end siloed work, streamline workflows, kerrie gottschalk, jira cloud admins, unified marketing, process visibility, team efficiency, cross-team collaboration

How Kerrie Gottschalk unified AAFP’s marketing team with Jira

At the American Academy of Family Physicians, siloed marketing teams faced delays and duplicate work. Kerrie Gottschalk shook things up by moving the department to Jira, streamlining processes, boosting visibility, and sparking stronger collaboration.

Read the story
AUG Leaders

Atlassian Community Events