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