Adding issue operation links to the email

SINCE VERSION 6.1

Jira Email This Issue allows you to include issue operation links in the email body. All you need to do is to select Operation Links in the Field Picker dropdown in the email template editor.

In the HTML editor, you can add a placeholder in your email template for the operation links:

Rendering links

When you include the above mentioned template fragments, Email This Issue will use the following code to render the operation links. If you want to customize how operation links are rendered, change layout or styles, include the following codeblock directly in your template and tailor it to your needs.

Example template codeblock rendering links in HTML emails

#set ($transitions = $!jetiFieldRenderer.getWorkflowActions($!issue))
#if ($!transitions && $!transitions.size() > 0)
#foreach($transition in $!transitions)
<a style="border-left:1px solid #ccc; padding:4px 10px; float:left;" href="$baseurl/secure/WorkflowUIDispatcher.jspa?id=$issue.id&action=$!transition.id">$!transition.name</a>
#end
#end

Example template codeblock rendering links in Text emails

#set ($transitions = $!jetiFieldRenderer.getWorkflowActions($!issue))
#if ($!transitions && $!transitions.size() > 0)
#foreach($transition in $!transitions)
$stringUtils.leftPad($!transition.name, $padSize): $baseurl/secure/WorkflowUIDispatcher.jspa?id=$issue.id&action=$!transition.id
#end
#end

Last updated

Was this helpful?