The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

How to delete a comment with specific criteria via project automation

Roman Zanevski
April 4, 2020

Good time of day to everyone! I have the next question: if we have an issue with a lot of comments from one user and with some text patterns mixed with useful comments from another users, can we setup the project automation to fiind this comments (according to user and text criterias) and delete them? 

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Angélica Luz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 6, 2020

Hello Roman,

Thank you for reaching out to Atlassian Community!

When creating an automation, it will run for all tickets created after the automation was created. As per the details you provided, you would like that the automation removes comments already added, so if that's the case, it won't be possible.

It's possible to create an automation to delete future comments that contain a specific text, but I'm afraid that for tickets that already have this comment, it will be necessary to manually delete it.

The rule to delete future comments will be like the example below:

Screen Shot 2020-04-06 at 14.28.11.png

If you have any other questions regarding this, please let us know.

Regards,
Angélica

Alexander Ziegltrum
Contributor
July 14, 2023

Hi @Angélica Luz

is there also a way, that you know of, to do this in Jira cloud and look for certain criteria like comment.author.displayname and delete each comment in that issue?

I am fiddling around with the branch rule, but I can't get the iteration right, first to identify all comments with its ID to delete it.

Regards, Alex

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events