Sometimes, in order to troubleshoot your JIRA instance, you need to provide a data dump for Atlassian or another service vendor so that they can recreate your environment to reproduce the problem locally. If you have sensitive information in your JIRA, this can be troublesome. In this recipe, we will look at how we can anonymize our data in JIRA.
For this recipe, we need to use the JIRA Anonymizer utility. You can download it from the following link:
To run the Anonymizer utility, make sure that the following prerequisites are met on the machine you are running the utility from:
JAVA_HOME
environment variable is set properlyjava -version
command will display the correct version of JavaPerform the following steps to anonymize your JIRA export:
jira_anon.zip
file to a temporary directory.entities.xml
) to the temporary directory.joost.jar
file resides.java -Xmx512m -jar joost.jar entities.xml anon.stx > anon-entities.xml
command, where entities.xml
is the name of the original XML export and anon-entities.xml
is the new anonymized XML file to be created.The JIRA Anonymizer protects sensitive information in your JIRA by going through your JIRA XML export and replacing values from many fields in JIRA with a string of the character x. The list of fields that are to be anonymized include the following:
Depending on the size of the export, the utility may require additional memory for processing. The -Xmx
parameter indicates the amount of memory to allocate, so in the preceding steps, we allocated 512 MB of memory to run the utility.