Forums

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

Remove mentions when copying comment via automation

Chris Swee
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!
May 25, 2022

Hi -

I have a relatively simple automation rule that copies the last comment on a subtask into the comment history of the parent. I'm trying to determine if it is possible to remove any mentions when the comment is copied as it duplicates the notification email - 1 for the subtask and 1 for the parent.

 

I think the only relevant portion is this:

 

Comment from sub-task {{triggerissue.key}}/{{triggerissue.summary}}

{{triggerissue.comments.last.body}}

 

Ideally, I'd like to have the copied mention display something like this: Commenter mentioned [user name]; but I will settle for just removing the mention in the parent comment altogether to avoid the email duplication.

Is either possible?

1 answer

0 votes
Carlos Vanegas
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!
January 13, 2025

I've sucessfully achieved this by adding .text at the end
Example : {{issue.comments.last.body.text}}

ref @Pierre-Yves Dufour : https://community.atlassian.com/t5/Jira-questions/Is-there-a-way-to-decode-or-remove-user-mention-in-the-body-of-a/qaq-p/1720208

Suggest an answer

Log in or Sign up to answer