Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
JIRA 6.x Administration Cookbook

You're reading from   JIRA 6.x Administration Cookbook Over 100 hands-on recipes to help you efficiently administer, customize, and extend your JIRA 6 implementation

Arrow left icon
Product type Paperback
Published in Jul 2014
Publisher Packt
ISBN-13 9781782176862
Length 260 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Patrick Li Patrick Li
Author Profile Icon Patrick Li
Patrick Li
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. JIRA Server Administration FREE CHAPTER 2. Fields and Screens 3. JIRA Workflows 4. User Management 5. JIRA Security 6. E-mails and Notifications 7. Integrating with JIRA 8. JIRA Administration 9. JIRA Customizations Index

Anonymizing JIRA exports

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.

Getting ready

For this recipe, we need to use the JIRA Anonymizer utility. You can download it from the following link:

https://confluence.atlassian.com/download/attachments/139008/jira_anon.zip?version=1&modificationDate=1367988226752&api=v2

To run the Anonymizer utility, make sure that the following prerequisites are met on the machine you are running the utility from:

  • Make sure the JAVA_HOME environment variable is set properly
  • Running the java -version command will display the correct version of Java

How to do it…

Perform the following steps to anonymize your JIRA export:

  1. Unzip the jira_anon.zip file to a temporary directory.
  2. Copy your JIRA XML export (entities.xml) to the temporary directory.
  3. Open up a command prompt and go to the temporary directory where the joost.jar file resides.
  4. Run the anonymizer application with the 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.

    Note

    JIRA's XML backup utility produces a ZIP file that contains two XML files; do not anonymize activeobjects.xml.

How it works…

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:

  • Issue summary, environment, and description
  • Comments, work logs, and change logs
  • The project description
  • Configuration scheme description such as the notification and permission schemes
  • Attachment filenames
  • Text custom field types

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.

You have been reading a chapter from
JIRA 6.x Administration Cookbook
Published in: Jul 2014
Publisher: Packt
ISBN-13: 9781782176862
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime