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

1 vote
Andy Brook Community Champion Feb 18, 2015

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?

Andy Brook Community Champion Feb 19, 2015

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 Join to answer
Community showcase
Maarten Cautreels
Posted Thursday in Off-topic

Friday Fun: What's your favourite beer/drink

As a Belgian, beer-lover and home brewer, beer is one of my great passions. I love the fact that with just a few ingredients (usually just water, hop and malt) you can create so many different tastes...

285 views 38 9
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot