Add Issue system fields to batched email template

Evgeniy Russkikh October 17, 2019

Hello!
I want to add some issue's system fields to my batched email templates.
There are some articles about this: https://confluence.atlassian.com/adminjiraserver/customizing-email-content-batched-notifications-976770772.html
and
https://confluence.atlassian.com/adminjiraserver/adding-custom-fields-to-emails-batched-notifications-968669988.html
But there only information how to add customfields. But what about system fields?
I tried to add :
$issue.reporter
$header.issuePriority
$header.issueReporter.fullName
$header.issueDescription
and my emails not render this values.
How can I add system field values? $issue variable not accessible anymore in batched email templates?

Capture.PNG

1 answer

0 votes
Daniel Holmes June 26, 2023

Did you ever figure out an answer here?   I'm just starting this and was getting the set of issues on the initial Batch object, but the issues returned on getIssues are all an EmailIssue class in the batcher plugin that have all the issue interface methods impemented as

 throw new UnsupportedOperationException();

Which is a pretty crappy way to implement the com.atlassian.jira.issue.Issue interface

Suggest an answer

Log in or Sign up to answer