I need to delete the comments in Jira tickets using Automation or some other ways. But I have certain condition :
=> When the ticket status is reached "Closed" then all the comments whichever was present in the ticket need to be deleted.
=> Is there any way to do that?
Hi @Asmath Basha S,
That is technically possible. But why on earth would you want to do something like that? If you are on a free plan, you have a limited set of automation rules you can run on a monthly basis. When issues are done, they will be hidden from your boards after 2 weeks or so, so you are unlikely to ever look at them again. And when you would want to look at them again, removing all comments removes the entire (communication) history of the issue, leaving you with virtually no context at all.
If you really insist on doing this, the following automation should work: when your issue transitions to done, pull a list of all comment id's on the issue and then delete the comments on it by iterating through that list:
But again, I can't think of any reason to do this ...
Hope this helps!
Hi @Walter Buggenhout ,
In the Remove comment from issue => comment id => what I need to enter in the comment id box ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Literally what is in the screenshot, @Asmath Basha S . The name of the variable, between double braces: {{commentId}} in my example, whatever name you give the variable in the step before.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Walter Buggenhout Got it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Walter Buggenhout ,
In Jira data center, Advanced branching is not present in Automation. For that what we need to add in Jira data center Automation version to delete all the comments.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Walter Buggenhout ,
Can you explain the Automation steps to achieve this in Jira Data center version Automation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Walter Buggenhout this is exactly what I'm looking for.
I'm running this as a scheduled automation to clear our all the comments on a project however the automation keeps running into an automation limit
I'm wondering if there is a way to update the script so it runs several times, just picks up from where it last failed until all issues have been reviewed and comments deleted.
Any suggestions?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.