The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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 Champions.
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Mirek
Community Champion
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?

DEPLOYMENT TYPE
SERVER
VERSION
8.8.1
TAGS
AUG Leaders

Atlassian Community Events