/
Change addcomment links to prompt email reply / link to a JSD Portal
Change addcomment links to prompt email reply / link to a JSD Portal
Getting the Add Comment to popup an email reply, to include the issue key in the subject
In order to do this, you will have to customize the addcomment link. If you have one template for all, you need to detect switch the kind of link being generated, if you have a dedicated template for Service Desk, its not to hard,
instead of a http: link to the site, you would use a HREFof "mailto:reply@blah.com?subject=blah (ABC-123)",
Part 1: a UserMacro
#macro (showmailtocomment)
<table id="actions-pattern" cellspacing="0" cellpadding="0" border="0" width="100%">
#set ($subjectText = $textUtils.htmlEncode("($issue.getKey()) reply") )
<tr>
<td id="actions-pattern-container" valign="middle">
<table align="left">
<tr>
<td class="actions-pattern-action-icon-container">
<a href="mailto:reply@blah.com?subject=$subjectText" target="_blank" title="Comment"></a>
<img class="actions-pattern-action-icon-image" src="$attachmentsManager.getImageUrl("/images/mail/comment-icon.png")" alt="Comment" title="Comment" height="16" width="16" border="0" />
</a>
</td>
<td class="actions-pattern-action-text-container">
<a href="mailto:reply@blah.com?subject=$subjectText" target="_blank" title="Comment">Comment</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
#end
Part 2:Customize the TemplateSet
Instead of:
#set ($commentActionBody="#parse('templates/email/html/includes/patterns/comment-action.vm')")
#rowWrapperNormal($commentActionBody)
Use:
#set ($commentActionBody="#showmailtocomment()")
#rowWrapperNormal($commentActionBody)
That's the basic how to supply a reply to and a subject. determining when to use it in place over the standard is up to you in that context.
Linking to a JSD Portal
<a href="$baseurl/servicedesk/customer/portal/PORTAL_ID_HERE/$issue.getKey()">See in portal</a>
, multiple selections available,
Related content
Send notifications for Issue Events
Send notifications for Issue Events
Read with this
Remove signature text and images from emails
Remove signature text and images from emails
Read with this
Get automatically added as a Jira Service Desk Request Participant
Get automatically added as a Jira Service Desk Request Participant
Read with this
How Do I....
Read with this
Remove replied-to content
Remove replied-to content
Read with this
Customize Templates based on recipient group membership
Customize Templates based on recipient group membership
Read with this