Forums

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

Suppressing comment notifications when it comes from a specific email address

Vishal Gautam
Contributor
May 6, 2020

Hello All,

We are facing a duplicate email notification issue for which any help ideas will be greatly appreciated. So we have a Google group, which is used to broadcast a mail to a set of folks. Now we want to capture this discussion in a Jira tkt and allow multiple ways to participate in the discussion. For this we have added this group email to the watcher of the Jira tkt and also we have added Jira's mail as a member of the group. Now following scenarios are possible and we want all these to work

  1. Users go to Jira tkt and post a comment. Jira sends the notification to the group as it is in watchers, everyone gets notified. This case works well.
  2. Users send mail to Jira's mail, which gets posted to Jira as a comment and notification goes to watchers and everyone gets notified. This case also works well unless the user is in reporter, assignee or watchers of the Jira tkt, in which case user receives 2 notifications - one from Jira directly and another from the group.
  3. Users reply to the group mail, it broadcast the message to all members including Jira, a comment gets posted in Jira and it sends notification to all watcher so group gets the mail from Jira and everyone receives the same message twice now, one from the original message on group and another one from the reflected message from Jira back to the group. 

We do need #3 also to work. One solution I can think is, if somehow we can suppress the comment notification event when the comment comes from the group mail then we can cut the loop. Is there anyway to conditionally suppress comment notification?

Or, does anyone have an alternative solution?

Thanks. 

 

 

1 answer

0 votes
Andrew Laden
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.
May 8, 2020

You may want to look at "JEMH" Jira Enterprise Mail Handler

https://marketplace.atlassian.com/apps/4832/enterprise-mail-handler-for-jira-jemh?hosting=server&tab=overview

It has components that can replace both the inbound mail handling and the outbound notifications.

In the outbound, there is a way to suppress the notification in certain cases. The key is being able to add some sort of metadata to the comment when it is created that can be picked up by the notification side to determine when to suppress notifications. Not sure how to do this personally. Its something we run into on occasional as well. But if you want to dig into it, it could probably do the task.

note for item 2, just remove Reporter and assignee from the comment notification. And tell users not to add themselves as watchers. (or even better, Dont add watchers to the comment notification, but instead explicitly list just he group.

Also 1 and 2 should be the same. There should be no different between a comment added via the gui and one added vial email. They both trigger the same event.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events