Customize Comment Notification Emails with @mentions in Confluence

We have recently upgrade to Confluence 4.3.7 and have changed the comment notification so that the email only notifies the user that a comment was made and none of the actual comment content comes through in the email notification. This is working fine, except in the case where the comment contains an @mention of a user in the comment itself. If that is done then the entire comment content comes through in the email. Is there any way to change the configuration so that the comment content does not get sent in the email notification no matter what the comment content contains?

Any help would be appreciated.

3 answers

Hi James,

As far as I can see you cannot change this by configuration. There are some comment-added/edited/removed-notification.vm's which define the content of this notifications mails. You have to change the email templates in the confluence application core, because there is no check for any configuration within this templates.

Hope this helps, even it's not a real positive answer. ;)

Re to your comment:

Yes, you are right. Unfortunately the functionality of mentions managed by an extra system plugin "Confluence Mentions". Within this Plugin, you can find the html-email-notification-template.vm defining the mail content.

We tried to modify that jar file in 5.0.2 and re-install via UPM, was working fine.

In 5.3, we used the same method and the mention function breaks. Either no email received for any mention made or the Notification/Task list fails to load.

Anybody has the same experience?

Thanks for your reponse Mirko. We have already edited and created customized email templates as you have suggested. These customized email templates work fine be we need the information about the email templates used for the @Mention to be customized as well.

So far Atlassian Support has not been willing to provide details about how to customize these 'hidden' email templates.

We would appreciate any recommendations from the user community.

Yes, you are right. Unfortunately the functionality of mentions managed by an extra system plugin "Confluence Mentions". Within this Plugin, you can find the html-email-notification-template.vm defining the mail content.

Mirko, THANK YOU for your prompt response! Please tell me how to find and edit this file.

... now a little bit later. ;)

You can find the plugin in you confluence setup file, search for atlassian-bundled-plugins.zip and within for confluence-mentions-plugin-*.jar. It's a zip compressed file, you can open and edit the template file html-email-notification-template.vm (addionally it's a good idea to change the plugin version). After that install the modified plugin via the UPM in the Confluence administration. I havn't tested it. Be careful, because it's a system plugin.

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
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

1,398 views 24 10
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