Wiki

Clone wiki

email-pf / Email Template Example

Here is an example template code that can be used with this plugin. It shows basic options that are available.

#!html

<p>This is ticket <b>${issue.key}</b> from <b>${issue.project.name}.</b></p>
<p>And you have to do:
$!{issue.summary}
</p>
<p>How to do it:
#if (${issue.description})
${issue.description}
#else
is not defined.
#end
</p>
<p><b>Problem:</b> $!{cfUtils.getValue($issue, "customfield_10000")}</p>
<p><b>Steps to reproduce:</b> $!{cfUtils.getRenderedValue($issue, "customfield_10001")}</p>
<p><b>Remote user:</b> $!{cfUtils.getValue($issue, "customfield_10003")}</p>
<p><b>Tags:</b> $!{cfUtils.getValue($issue, "customfield_10004")}</p>

#if ($comment) 
<p> 
<b>${userKey}</b> commented: $comment 
</p>
#end

<p>Have a nice day!</br>
${issue.reporter.displayName}
</p>

Updated