Removing Mention Comments

To stop Jira sending out comments within mention emails (when you @ someone on ticket) we need to do the following. This is to prevent sensitive info in comments being sent out via email:

First we need to change to the right directory.

vim /opt/atlassian/jira/atlassian-jira/WEB-INF/classes/templates/email/html/issuementioned.vm

Then hit the insert key and then remove the following lines:

#parse('templates/email/html/includes/patterns/comment-top.vm')

#set ($issueTitleBody="#parse('templates/email/html/includes/patterns/comment-title.vm')")

#rowWrapperNormal($issueTitleBody)

Then press Esc followed by shift+colon and then type wq and hit enter.

Then restart Jira

systemctl restart jira

Then everything should be back up and running.