I'm trying to avoid having a sensitive field be sent to assignees and watchers on issue creation by email. It's a custom field and looking at the template in the batcher plugin, there is this segment (templates/email/batch/html/IssueUpdateBatcher-content.vm) that seems to loop through all of the changed fields:
#foreach($update in $fieldGroup.updates)
<tr class="field-update">
<td valign="top" align="left" class="updates-diff-label">
$escape.apply($update.fieldName):
</td>
<td valign="top" align="left" class="updates-diff-content">
ohai
#if($update.iconUrl)<img src="$update.iconUrl" height="16" width="16" border="0" /> #end$update.diff
</td>
</tr>
#end
Is there a way to set this up to avoid a certain field, either in the batcher template or in the Jira UI?
I'm using a self hosted Jira 8.5
Velocity doesn't seem to have a continue statement, but perhaps you can wrap the whole thing in an if statement, like this:
#foreach($update in $fieldGroup.updates)
# if($update.fieldName != "Private Field")
<tr class="field-update">
...
</tr>
#end
#end
Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.
Learn more
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.