Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

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.

Simple acknowledgement to the creator of an issue via email (Issue Created Event/Template Set)

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
titleSimple 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() 

Simple acknowledgement to the creator of  comment via email (Issue Updated Event/Template Set)

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
titleSimple 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()

 

...

Filter by label (Content by label)
showLabelsfalse
max5
spacesJEMHC
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("notifcations","jemhc","templates") and type = "page" and space = "JEMHC"
labelsjemhc templates notifcations

...

Page Properties
hiddentrue


Related issues