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

This widget could not be displayed.

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?

This widget could not be displayed.

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.

This widget could not be displayed.

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
Community showcase
Posted yesterday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

201 views 2 4
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