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
Hi can we tweak it to delete past approvals?
LikeLike
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?
LikeLike
Create a Job (type “Escalation Service”) with Scriptrunner, just put the JQL and the script and run it!
LikeLike
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.
LikeLike
Create a Job (type “Escalation Service”) with Scriptrunner, just put the JQL and the script and run it!
LikeLike