Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Before (legacy non-GDPR compliant)

After (GDPR compliant)

Description

Code Block
#set ($fields = $context.issue.fields)
#if ($fields.assignee.name.textValue())
  $fields.assignee.name.asText()
#else
  Unassigned
#end

Code Block
#set ($assigneeAccountId = $fields['assignee'].accountId.asText())
#set ($assigneeVal = $jemhUtils.getUserDescription($assigneeAccountId))
#if ($!assigneeVal)
$jemhUtils.setFieldRendered() $assigneeVal
#else
(cant get assignee)
#end

context.user.displayName.asText()

$jemhUtils.getUserDescription($context.user)

Display name is PII, getUserDescription loads the user and retrieves the display name at rendering time.

id="email_$worklog.author.name.textValue()"

id="email_$jemhUtils.getUserAccountId($worklog.author)"

User name is PII and it’s deprecated information. Atlassian will remove them from the user in March 2019. If you need some user identificator, please use the account id by calling $jemhUtils utility method.

$comment.author.avatarUrls['24x24'].asText()

$jemhUtils.getUserAvatar($comment.author,'24x24')

User avatars are PII, JEMHC loads them at rendering time from the user object

$context.entity.user.emailAddress.textValue()

$jemhUtils.getUserEmailAddress($context.entity.user)

Email addresses need to be retrieved at rendering time using $jemhUtils’s getUserEmailAddress

$baseurl/secure/ViewProfile.jspa?name=$changelogGroup.updateAuthor.name.asText()

$jemhUtils.getUserProfileUrl($changelogGroup.updateAuthor)

User profile page has changed. The new helper method will give you the correct URL based on the user’s account id.

$jemhUtils.isJiraUser($context.user.name.asText())

$jemhUtils.isJiraUser($context.user)

A way to know if a user is a real Jira user and not JEMHC’s addon user.

$changeLogItem.fromString.asText()

$jemhUtils.getChangeLogFromValue($changeLogItem)

Change log values would need be processed as they may contain account ids. The account ids need to be converted to user’s display name. This how you render a ‘from’ value of a change log.

$changeLogItem.toString.asText()

$jemhUtils.getChangeLogToValue($changeLogItem)

Like above, This how you render a ‘to’ value of a change log.

...