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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.