Automation: How to remove a user ID when posting the last comment from an issue in a Slack message?

Evgeniy Zimmerman
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!
April 19, 2024

Hello community! 

 

I'm looking for your advice!

I set up an automation rule that will post a message in a Slack channel with a list of tickets assigned to a person and some details.

This is what it looks like:

When: Scheduled

Branch FOR JQL: project = X and assignee = 12345 and parent = X ORDER BY created DESC

Then: Send slack message

{{issue.summary}}
{{triggerIssue.url}}
Due date: {{issue.duedate}}
{{#issue.comments.last}}
Comment by: {{author.displayName}} at: {{created}}
{{body}}
{{/}}

this works fine, but if the last comment mentions the user via @, for example:

"@john, please give some details on..." 

After running the automation rule, the slack message returns:

"[~accountid:123456789], please give some details on..."

 

Is there a way to make it return the username instead of the ID?

 

Thanks in advance!

 

1 answer

0 votes
Fernando Eugênio da Silva
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 19, 2024

@Evgeniy Zimmerman , Welcome to the Atlassian Community!

 

Please, try to add .text in your comments section or try this: {{#issue.comment.last.body.text}}

 

This should be work. Similar topic where this works here: Solved: User ID is being displayed in automation instead o... (atlassian.com)

Hope this helps you.

Kind regards,

Fernando

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events