Deleting Hierarchies of Inactive Users in Jira

Deleting Hierarchies of Inactive Users in Jira

Prerequisites:

  • Jira Admin Privileges:
    You must have Jira Admin privileges to perform this action.

  • Backup Jira Data:
    Ensure you back up your Jira data before proceeding with deletion. Once templates are deleted, they cannot be recovered. This is a critical step to avoid any data loss.


Steps to View and Delete Hierarchies with Inactive Owners:

  1. Ensure Jira Admin Privileges:

    • Log in to Jira with admin rights.

  2. Backup Jira Data:

    • Ensure a backup of your Jira instance is completed.

  3. View Hierarchies with Inactive Owners:

    Before deleting any hierarchies, you can list and review those that have inactive owners. This helps to verify which hierarchies are eligible for deletion.
    To view hierarchies with inactive owners, use the following API endpoint:

    GET /rest/smartissuetemplates/1.0/hierarchy/inactive-owners-hierarchies

    Example request to get the list of hierarchies:

    GET http://<customer-domain>/rest/smartissuetemplates/1.0/hierarchy/inactive-owners-hierarchies

  4. Exclude Specific Hierarchies from Deletion (Optional):

    If you need to exclude specific hierarchies from deletion, you can provide a list of hierarchies IDs that should be ignored during the process. For example, to exclude hierarchies with IDs 1, and 2, the request would look like this:

    GET http://<customer-domain>/rest/smartissuetemplates/1.0/hierarchy/delete/inactive-owners?excludeIds=7&excludeIds=6

    If you don’t wanna exclude then make in browser request: http://<customer-domain>/rest/smartissuetemplates/1.0/hierarchy/delete/inactive-owners