JEMH - Getting double notifications

So...working on building out a new install of JEMH using JIRA 6.2.7 and JEMH 1.5.129. I'm getting the custom "create" email that I've built, but I'm also getting a follow up regular JIRA one as well. I've stripped all users out of the custom event, so it's being triggered by JEMH, just not sure how.

Oh...and I'm doing it from an external user that doesn't exist in Jira. Thoughts? 

1 answer

1 accepted

0 votes
Accepted answer

Hi James,

its one of three things:

  1. there is a ISSUE_CREATED and CUSTOM_EVENT enabled in the JEMH Event Listener
  2. there is either an ISSUE_CREATED or CUSTOM_EVENT enabled in the JEMH Event Listener AND the Profile > Notifications > Notify user of issue creation is set to something
  3. any single variant above + Postfunction notification defined.

I guess that this wont happen for interactive users creating issues (by the guess that you have Issue_Created enabled), interactive users get one notification, but email creation triggers two.  This is because there is no way for JEMH to 'know' (in 1.6.x) that the issue was created by one or the other method.  As happens, I did just document this in 1.7.x (1.7.x creates issues with Custom Fields, making the approach viable).  In 1.6.x its not there, can't be there.  Anything familiar?

I''ll be checking in a few minutes after I get done with my "resolution" template mail I'll go after it. My guess is that I did #2, but...not sure.

there is a problem scenario in pre 1.7.x when supporting both interactive users (who need ISSUE_CREATE) and email users (who need the CUSTOM_EVENT). For interactive only, easy, ISSUE_CREATED, only. for email only, easy, CUSTOM_EVENT. For both, sure, enable both but when issues are created by email, the assignee (an any other notification scheme recipient) gets a mail twice. In 1.7.x, its becomes possible to detect whether an issue was created by email or not: - https://thepluginpeople.atlassian.net/wiki/display/JEMH/Inhibit+sending+of+an+Issue+Event+notification Doesn't help you in 1.6.x. Options are limited, you can setup a hybrid where Event Listener has ISSUE_CREATED (only) and you depend (only) on the Profile > Notifications > Notify user of issue creation.

Ok...we'll be be bit by that pre1.7.x scenario then. We need to support both external and internal. Oh well...gives me more fodder to try to get a Jira upgrade done.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,115 views 4 9
Read article

Atlassian User Groups

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!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you