Hi,
Following on from https://answers.atlassian.com/questions/304915.
I would like to know if it's possible to clear individual rows from JIRA's issue change history.
Unfortunately the easiest solution - updating the issue, cloning it then deleting the original - is the least desired end user option, closely followed by - stopping jira, removing bits from changegroup / changeitem, then restarting - as the IT support team are not supposed to see the data in question and I am a front end administrator only.
I've used the code supplied in the other question to run in Scriptrunner's script console, and I can inspect the element of the row of my issue in question to get the change ID e.g.
<div class="action-details" id="changehistorydetails_12345">Is there something I can replace ".removeAllChangeItems" with in the below script to pick up the change ID and remove it's details only?
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) return issue.toString () |
I am using JIRA 7.1.8 if that's any help.
Community moderators have prevented the ability to post new answers.
Long shot here after more than 2 years, have you found a way to do this? I am looking for the same thing :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Diego,
there is a plugin on the Atlassian Marketplace which could help you. It is called "Issue History Item Remover".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nici,
Thanks for your answer, but I need to remove history items as a part of code.
Thank you anyway :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Same here, need to delete individual history entry of a ticket.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.