Multiple emails being sent to the same user

Katherine-Anne Jansen August 30, 2016

We have Script Runner 4.1.3.8, using it to send a custom email to users but the users are receiving 3 or 4 of the same email for the same ticket.

Nothing in the Notification Schemes is triggering secondary emails.

I need this to stop as it is causing some confusion for the users.

Is this an issue with ScriptRunner?

6 answers

0 votes
Jonny Carter
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.
September 8, 2016

It could prove helpful, yeah.

Another thing to test is whether other methods of sending emails outside of ScriptRunner send multiple messages as well. If so, then it may be an issue with your Mail Server settings in JIRA itself, not the post function.

0 votes
Katherine-Anne Jansen September 8, 2016

the email only goes to assignees and watchers - but there are no watchers and the assignee is not autowatching the issue.

I can add the configuration later today if you think the rest of it will help

0 votes
Jonny Carter
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.
September 7, 2016

Think you could share your listener's configuration and the configuration of your workflow? If the listener is only firing once, it could be that the same email address is getting included multiple times via the To Addresses, To Issue Fields, CC fields, etc.

0 votes
Katherine-Anne Jansen September 6, 2016

I am.

The emails are identical. The logs in the script listener only show the listener being triggered once. The outgoing mail log shows the email being sent multiple times but I haven't found why so many are being sent.

The emails are listening for a custom event that is only used once in one workflow.

The custom event is only in that one transition and the listener isn't listening for any other events.

0 votes
Jonny Carter
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.
September 6, 2016

I assume you're using the Send custom email post function in one of your workflows. 

Several questions to help debug this:

  1. Are the emails the users are receiving identical? Or are there differences between them.
  2. Do multiple workflow transitions have this step? If so, it may be that users are getting the emails because the issue is going through multiple workflows.
  3. Could anything be triggering the workflow multiple times?
0 votes
Joe Pitt
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 30, 2016

It sounds like whatever is in script runner is in addition to what the notification scheme would do. Did anyone modify either the notification scheme or script runner. If you don't know I'd start by turning script runner off.

Katherine-Anne Jansen August 30, 2016

There is way too much functionality with Script Runner to turn it off and there isn't a separate Test environment.

The Notification scheme has no recipients for the event that triggers the custom email.

Any other suggestions? Unless you know how to turn off just parts of script runner. 

Suggest an answer

Log in or Sign up to answer