Forums

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

Delete all the comments after the ticket status is closed using Jira Automation

Asmath Basha S
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.
February 28, 2024

I want to delete all the comments after the ticket has closed for a specific projects. Do we have any methods to achieve this. I have tried in Jira Automation but only the latest comment is deleted. Can anyone suggest if there is a way to create this.

1 answer

0 votes
Sebastian Krzewiński
Community Champion
February 28, 2024

Hi @Asmath Basha S 

 

But why? IMO it looks like losing lot of important data.

From technical point of view this can be achieved by using Rest API. You can get all comments and delete them. You can use automations for that (Web requests) but there will be lot of work IMHO. Better way will be to use script for deleting and automation for triggering this script.

 

Regards,

Seba

Asmath Basha S
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.
February 28, 2024

Hi @Sebastian Krzewiński 

 

We don't want to delete all the comments instantly, but I have some conditions.

For example : I have a field Employee details - FTE/Vendor. We have these two dropdowns in a custom field. If I select Employee details field as FTE then I need to delete all the comments after the tickets status has moved to closed.

Can you explain how to achieve this using Automation or any other method.

Suggest an answer

Log in or Sign up to answer