Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

There is a way of delete the issue's history of a specific user?

Rafael Costa
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 1, 2022

I have an automation that comment with an automation user on the issues that up to 3 days without interaction. 

But this leave de history issue a bit dirty and I would like clean the comment registries of the automation user.

Could be in rest API or via Groovy. Help me!

2 answers

1 vote
Prince Nyeche
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 1, 2022

Not possible via REST and I don't think this is something that should be allowed in the first place on Jira. The history is like an integrity checker. If the data can be easily wiped or changed without a trace of what the previous item was, it can compromise a lot of organization security that uses such means as a way to verify and identify changes within their projects. 

0 votes
Florian Bonniec
Community Champion
August 1, 2022

Hi @Rafael Costa 

If I understand well you want to remove the comment at some point ? not the history, comment on issue should not create a new entry in the history.

 

You should be able to parse all comment and delete those with the automation as author every X time or when the automation user create a new comment in the same issue.

 

https://docs.atlassian.com/software/jira/docs/api/8.0.0/index.html?com/atlassian/jira/issue/comments/CommentManager.html

 

It will require Scriptrunner.

Suggest an answer

Log in or Sign up to answer