...
Code Block |
---|
title | jemhIncludeBody Macro |
---|
|
#macro ( jemhIncludeBody)
<tr>
<td class="email-content-main mobile-expand issue-description-container">
<table class="text-paragraph-pattern">
<tr>
<td class="text-paragraph-pattern-container mobile-resize-text">
#if ($jemhUtils.isCreateOrInChangeLog($context, 'description'))
$jemhUtils.setFieldRendered()
$jemhUtils.wikiToHtml($fields.description.textValue())
#end
#foreach( $comment in $jemhUtils.filterRestrictedComments($context.comments) )
$jemhUtils.setCommentRendered()
#if ($jemhUtils.isJiraUser($comment.author.name.textValue())) <pre>#if($jemhUtils.hasUserRole($jemhUtils.getOperationUser(),'developers'))$messageUtils.getMessage('velocity.macro.action.header.support')#else$comment.author.displayName.textValue()#end $messageUtils.getMessage('commented'):</pre>
#end
$jemhUtils.wikiToHtml($comment.body.textValue())
#if (!$jemhUtils.isNull($comment.visibility))($messageUtils.getMessage('restrictedTo') <span class="restricted-to-value">$comment.visibility.value.textValue()</span>) #end
#if (!$jemhUtils.isNull($comment.updated) && $comment.created != $comment.updated)<span class="edited-label">$messageUtils.getMessage("velocity.macro.action.header.edited")</span> $messageUtils.getMessage("velocity.macro.action.header.by") $comment.updateAuthor.name.textValue()#end
#if( $foreach.hasNext )<hr>#end
#end
</td>
</tr>
</table>
</td>
</tr>
#end |
Warning |
---|
$jemhUtils.setFieldRendered() and $jemhUtils.setCommentRendered() mark the template as not empty. If you are adding a custom field to your template, remember to write $jemhUtils.setFieldRendered() otherwise you may see a 'email has not been sent as no useful information was set' warning. |
Previewing the Theme
JEMHCloud provides a preview tool that allows you to see the review your template against read event data.
- Go to Notifications -> Preview. Select the new Issue Created Template set named Issue Created: Issue Created Jira Support (User)
- Test the template sets with different preview contexts. Examples:
Developer user creates an issue using UI
User creates an issue via email
Developer user comments an issue via UI
- Repeat steps using other template sets and preview contexts.
...
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 5 |
---|
spaces | JEMHC |
---|
showSpace | false |
---|
sort | modified |
---|
reverse | true |
---|
type | page |
---|
cql | label in ("jemhc","template") and type = "page" and space = "JEMHC" |
---|
labels | template jemhc |
---|
|