Hi,
I built an automation to feed a "Last comment" custom field that enables me to display on the Kanban board the last comment of an issue.
I have a rule for "Issue commented" that sets "Last comment", and another one for "Issue comment edited" that updated "Last comment".
My problem is that if I delete a comment, no rules are triggered. There is no trigger "Issue comment deleted".
Any idea ?
Regards,
Bertrand
It's not possible, the possibile automation triggers are
https://support.atlassian.com/jira-software-cloud/docs/automation-triggers
You could implement the webhook system and add an API to feed tha last comment of an issue in kanban board
Let me know if you are interested in this, but straight forward solution is not there
Thanks,
Pramodh
Thanks Pramodh, I see what you mean. I twould be possible to use a webhook that is triggered on "comment deleted" (and that event exists for Webhooks): then we make a call to the Jira API to update the issue (only the "last comment" custom field).
But why is there no "Comment deleted" trigger in automation? Must be side effects that Atlassian could not solve easily...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, and...to what others have noted: there is an open suggestion to add an automation trigger for the update/delete of comments, which you may vote for/watch to see progress.
https://jira.atlassian.com/browse/JIRAAUTOSERVER-127
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Bill, the suggestion is for Jira Server, not Jira Cloud. For Jira Cloud, there is already a "update comment" trigger, but no "delete comment" trigger.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Bertrand, my understanding is the JIRAAUTOSERVER project is for all automation related stuff. There may also be automation-related tickets in the specific Jira, Software Cloud, and Server projects.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey all, I know this question is a little over 2 years old, but just in case anyone goes looking for this answer and needs current info, THERE IS a "Deleted Comment" trigger if you use the Multiple Events trigger and then select "comment deleted" from the list of trigger events provided.
I just finished working on an automation that services new, edited, and deleted comments.
I used the multiple event trigger to fire the automation on comment create, comment edit, and comment delete.
Hopefully the OP will see this and select the new answer as the valid one. :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bertand,
That's not one of the trigger options. What if you just turned off the permission to delete comments except for the people who need to know when a comment is deleted?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you John, that's a solution, but I like the idea that someone can delete a comment he just addeed by mistake.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Understood - but why would need for automation to do something if a mistake happens?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
My automation updates the "Last comment" custom fields when a comment is created. But if you delete the last commet, then "Last comment" is not updated, and still contains the comment that was deleted, and it's wrong. Instead of being blank (no comment left) or being filled with the previous comment.
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.