Customizing the Altassian Jira Anonymizer

lance_lyons
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 24, 2021

Since Atlassian support wasnt able to help on this tool that they provide saying it was out of scope,  wanted to ask here if anybody has had success extending the Anonymizer tool?

We have a few custom fields that we need to mask off before sending in a Jira backup.  This data is considered PHI.

Currently in the anonymizer there is a file named anon.stx.

<stx:transform xmlns:stx="http://stx.sourceforge.net/2002/ns" version="1.0" pass-through="none">

<stx:template match="Action/@body | MailServer/@username | */@password | */@description | Issue/@environment | Issue/@summary | NotificationInstance/@email | ChangeItem/@newstring | ChangeItem/@oldstring | FileAttachment/@filename | NotificationScheme/@name | PermissionScheme/@name | Resolution/@name | CustomFieldValue/@textvalue | Project/@url | Worklog/@body">
<stx:attribute name="

{local-name(.)}

"><stx:value-of select="replace(., '[\S]+?', 'x')"/></stx:attribute>
</stx:template>

<stx:template match="Action/body/text() | /description/text() | Issue/environment/text() | Issue/summary/text() | NotificationInstance/email/text() | ChangeItem/newstring/text() | ChangeItem/oldstring/text() | FileAttachment/filename/text() | NotificationScheme//text() | PermissionScheme//text() | Resolution//text() | CustomFieldValue/textvalue/text() | Worklog/body/text()">
<stx:value-of select="replace(., '[\S]+?', 'x')"/>
</stx:template>

<!-- Default rule - copy everything across -->
<stx:template match="node()|@*" priority="-1">
<stx:copy>
<stx:process-attributes />
<stx:process-children />
</stx:copy>
</stx:template>

</stx:transform>


Has anybody attempted to add additional fields into the anoymizer?  If so how might I add those to the anonymizer list of fields.


thanks 

1 answer

0 votes
Mirek
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 24, 2021

Hi @lance_lyons ,

Maybe you can make a quick temporary copy of your whole instance, (set up a test server) remove the field (or do whatever you want to get rid of data) and perform a Jira backup on that instance later?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.8.1
TAGS
AUG Leaders

Atlassian Community Events