How to anonymize User Fields from Jira issues based on the deletion scheme

This guide explains how to automatically anonymize user fields from Jira issues based on the deletion scheme of 3 months, 6 years, and 10 years, in specific issues/projects

In the scope configuration of Data Cleaner, choose “Current projects.”

In the scope field, type in one of these options:

  • If you want to anonymize user fields in specific project categories where issues were resolved three months, six years, and ten years ago

    • projectCategory = "CleanAfter3Months" AND resolved <= startOfMonth(-3)

    • projectCategory = "CleanAfter6Years" AND resolved <= startOfYear(-6)

    • projectCategory = "CleanAfter10Years" AND resolved <= startOfYear(-10)

  • If you want to anonymize user fields for issues with specific labels, where they were resolved 3 months, 6 years, and 10 years ago

    • labels = "CleanAfter3Months" AND resolved <= startOfMonth(-3)

    • labels = "CleanAfter6Years" AND resolved <= startOfYear(-6)

    • labels = "CleanAfter10Years" AND resolved <= startOfYear(-10)

  • Same can be done for issues created some time ago

    • labels = "CleanAfter3Years" AND created <= startOfYear(-3)

In the Fields, please use right dropdown button to choose: Select all user fields

 

In the Data Processing Rules, click on the “Create new rule”

  • Name the rule

  • In the Search type, choose Any User

  • In the Replace for, choose a system user, where the information will be transferred to

 

Skip the Post Functions

 

In the Reporting Options, choose who will be notified about the work of a template

Or add reports to the logs

 

In the Scheduling

  • Enable the scheduler

  • Choose the interval

    • Once a day, once a week, once a months

  • Choose Task execution type: Anonymization

 

With this template, functionality will run with the periods specified in the Scheduling, Search information only based on the JQL and use fields specified in Scope, and anonymize every user while moving all related information to the system user from Data Processing Rules.

For example, If the scheduler is set for one a week, every week the template will look for all issues created 3 years ago (if this is the JQL of your choice), and anonymize them.