Forums

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

Customize Comment Notification Emails with @mentions in Confluence

James Roberts May 2, 2013

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

1 vote
Mirko Skramusky
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 2, 2013

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.

Bizappt
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 23, 2013

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?

0 votes
Stephen Gramm
Contributor
May 6, 2013

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

Mirko Skramusky
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 13, 2013

... 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.

0 votes
Stephen Gramm
Contributor
May 2, 2013

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.

Mirko Skramusky
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 6, 2013

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events