It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

JEMH change email template

Hi, I'm new to JEMH, so a super basic question:

Currently when an answer email is sent to a (non-JIRA) user, it is formatted in the following way:


[ http://blubbb/browse/CSUP-123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=1234#comment-1234 ] 

Sebastian Baehr commented on CSUP-123:

Dear User,
have you tried turning it off and on again?

> Please help, program not working
> --------------
>                 Key: CSUP-123
>                 URL: http://blubbb/browse/CSUP-123
>             Project: cSupport
>          Issue Type: Supportticket
>            Reporter: John Doe
>              Labels: mail
> Why isn't this working?!

This message was sent by Atlassian JIRA

Now the problem is that I want to remove the links to the corresponding JIRA tickets, as they can't access them anyways (which is leading to confused customers as they don't know how to respond to the email).

Where can I find and edit the template that is used to generate the emails? I didn't find it in the JEMH settings.





1 answer

Hi Sebastian,

The TemplateSet contains macro calls that render the content.  Edit an ISSUE_COMMENTED TemplateSet (after creating first), set an issue for context, and use the preview feature to see how your changes come out. 

For example, this is the first few lines:

#if($comment.getId())[ ${baseurl}/browse/${issue.getKey()}?page=${tabpanel-comment}&focusedCommentId=${comment.getId()}\#comment-${comment.getId()} ] #end

line 3 is what needs customizing, you can see the URL.

Once you have customized your TemplateSet as you want, it needs 'picking' in the related JEMH Event Listener Project Mapping (for non-JIRA notifications and/or JIRA user notifications).


Great! However this only solves the first URL. The second one I guess is defined in the issuesummary.vm. How can I edit this one?

Hmm, looks like the JEMH macro list doesn't include that, you'll need to grab it (JIRA_INST/atlassian-jira/WEB-INF/classes/templates/email/text/includes/issuesummary.vm), and add as a custom user macro that you can then call with one line, rather than having to paste it everywhere you need it?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Teamwork

Listening out loud: how Fabian Lopez works on distributed teams

The start of the COVID-19 pandemic served as a forcing function to re-evaluate the way teams worked together. In fact, many companies are re-learning how to collaborate with their teams. As some move...

58 views 2 1
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you