How to Retrieve the User Who Deleted a Comment
I’ve set up an automation to send an email whenever a comment is deleted. I used initiator.Displayname
to identify the user who performed the deletion, but it consistently displays the name of the automation rule creator instead. Can you advise on how to correctly capture the name of the user who deleted the comment?
Hi @Scarlet -- Welcome to the Atlassian Community!
That is possible, and may cause potential rule problems. See the note at the end for details.
Let's assume your rule looks like this:
In the rule details at the top, if you change the Actor to "User who triggered the event", then the smart value {{initiator.displayName}} would be what you asked.
Please note well: by default the rule Actor is the Automation for Jira user, and it has many permissions allowing it to perform rule actions. When the actor is changed to a specific user or to "User who triggered the event", the rule actions are limited to what that user is allowed to do. Please consider that for any actions in your rule.
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.
Welcome @Scarlet !
Have you tried using the {{comment.author.displayName}} ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nikola,
The author display name only shows the name of the person who commented. Since George's comment was deleted by someone else, I'm looking for the name of the person who deleted it, not the name of the comment's creator. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, I am afraid that Jira doesn't have the native smart values.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Scarlet
I'm not sure how to solve this with automation, but you can check a solution from my team in this article How to get deleted comments in Jira?
It shows what comment was deleted, when, and by whom.
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.