Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to Retrieve the User Who Deleted a Comment

Scarlet
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 16, 2024

 

 

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?

 

3 answers

2 votes
Bill Sheboy
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.
October 16, 2024

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:

  • trigger: comment deleted
  • action: ...some action

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

Bill Sheboy
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.
October 30, 2024

Hi @Scarlet 

Just following up to learn if you resolved this one yet.

Thanks!

1 vote
Nikola Perisic
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 16, 2024

Welcome @Scarlet !

Have you tried using the {{comment.author.displayName}} ?

Scarlet
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 16, 2024

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!

Nikola Perisic
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 16, 2024

Well, I am afraid that Jira doesn't have the native smart values.

0 votes
Yuliia_Borivets__SaaSJet_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
October 16, 2024

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events