It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Delete / clear individual rows of change history from JIRA issues


Following on from

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()
return issue.toString ()

I am using JIRA 7.1.8 if that's any help.

3 answers

Long shot here after more than 2 years, have you found a way to do this? I am looking for the same thing :)

I'm sorry to say, no I never did! :(

Same here, need to delete individual history entry of a ticket.

Same here...

Hello Diego,

there is a plugin on the Atlassian Marketplace which could help you. It is called "Issue History Item Remover".

Hi Nici,

Thanks for your answer, but I need to remove history items as a part of code.

Thank you anyway :)

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

We want to hear from you! How do you use Slack and Atlassian together?

Hi Everyone! My name is Mina and I am on Atlassian’s Ecosystems Marketing team. Our team is focused on our technology partnerships and marketplace apps. One of Atlassian’s partners is Slack, who ...

44 views 0 4
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you