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 vote
Andy Brook Community Champion Jun 08, 2015

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.

Andy Brook Community Champion Jun 08, 2015

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

767 views 2 19
Join discussion

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