Yes, it’s possible if you have Scriptrunner, just copy this code in the script console and replace “ABC-1234” inside the code by the Issue Key. IMPORTANT NOTE: This script will delete all the history of the Jira ticket permanently (very useful if some users reach the security limits of your Jira using dangeorous data inside the tickets)… but use carefuly!!

import com.atlassian.jira.issue.Issue;
import com.atlassian.jira.component.ComponentAccessor
def issueManager = ComponentAccessor.getIssueManager()
Issue issue = issueManager.getIssueObject("ABC-1234")
def changeHistoryManager = ComponentAccessor.getChangeHistoryManager()
changeHistoryManager.removeAllChangeItems(issue)

By MrAddon

Posted by:.

5 replies on “Is it possible to delete History records of a Jira issue like the deletion of comments?

  1. Looks promising. We want to do it recursively for X number of issues we pull from a search in Jira (csv). Any experience with this?

    Like

  2. Would it be possible to tweak it to do this for all issues on a project instead of pr issue-key?
    In order for os to be GDPR compliant, we have a need to delete all history of our tickets.

    Like

Leave a comment