Scenario
By default, JEMHC's email notification notifies users showing the issue information, this could be too much information for your regular customer. You may like to send a simple acknowledgement to your remote user in response to an email that created or commented issue through JEMHCloud. This page will show you how to create simple acknowledgements in each scenario.
In order to send a simple response to a user who has created an email, you need to create a custom template. We will base this example on the JIRA Theme.
...
Code Block |
---|
title | Simple ACK Template Issue Created Body |
---|
|
#@issueNotification()
<table id="background-table" cellpadding="0" cellspacing="0" width="100%">
<!-- header here -->
#jemhIncludeStandardActionHeader()
<tr>
<td id="email-content-container">
<table id="email-content-table" cellspacing="0" cellpadding="0" border="0" width="100%">
#jemhIncludeIssueHeader()
#if($jemhUtils.isIssueCreatedByRecipientViaEmail($context)) ## THIS IF DETECTS IF THE NOTIFICATION'S RECIPIENT IS THE USER THAT CREATED THE ISSUE.**
<tr>
<td class="email-content-main mobile-expand wrapper-special-margin">
$jemhUtils.setCommentRendered()
Thank you for your email. We will be back to you soon!
</td>
</tr>
#else
#jemhIncludeIssueDetail($serviceJiraFields)
#jemhIncludeDirectiveSetLinks()
#jemhIncludeBody()
#end
#jemhIncludeAddComment()
#jemhIncludeFooter()
</table>
</td>
</tr>
</table>
#end
#inhibitSendingConditions() |
By default, JEMHC email notification mappings does not send an email to a user that has commented an issue via email. If you would like to send a simple ACK to the user, follow these steps.
...
Code Block |
---|
title | Simple ACK Template Issue Updated Body |
---|
|
#@issueNotification()
<table id="background-table" cellpadding="0" cellspacing="0" width="100%">
<!-- header here -->
#jemhIncludeStandardActionHeader()
<tr>
<td id="email-content-container">
<table id="email-content-table" cellspacing="0" cellpadding="0" border="0" width="100%">
#jemhIncludeIssueHeader()
#if($jemhUtils.isThereACommentCreatedByRecipientViaEmail($context))
<tr>
<td class="email-content-main mobile-expand wrapper-special-margin">
$jemhUtils.setCommentRendered()
Thank you for your email. We will be back to you soon!
</td>
</tr>
#else
<tr>
<td class="email-content-main mobile-expand wrapper-special-margin">
<table class="keyvalue-table">
#jemhIncludeChangeLog()
</table>
</td>
</tr>
#jemhIncludeBody()
#end
#jemhIncludeDirectiveSetLinks()
#jemhIncludeAddComment()
#jemhIncludeFooter()
</table>
</td>
</tr>
</table>
#end
#inhibitSendingConditions() |
...
Related articles
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 5 |
---|
spaces | JEMHC |
---|
showSpace | false |
---|
sort | modified |
---|
reverse | true |
---|
type | page |
---|
cql | label in ("notifcations","jemhc","templates") and type = "page" and space = "JEMHC" |
---|
labels | jemhc templates notifcations |
---|
|
...