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!
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.
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.
It will require Scriptrunner.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.