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

User ID is being displayed in automation instead of User name

Luis Loaiza October 30, 2023

We need to display the last comment added to a ticket in a "last comment" field under the description. 

We've created the following automation rule:

When: All comments

Then: Edit Issue

  •  Last Comment field
    • On {{updated. convertToTimeZone("America/Chicago"). mediumDateTime}} *{{issue.comments.last.author.displayName}}* said: {{issue.comments.last.body.abbreviate(100)}}

The rule is working properly, but there is an edge case when an @ mention is added in the comment. As you can see in the following example, the account ID is being displayed instead of the name. 

Comment:

@Ruslan Shlain please take a look at this

Last Comment field:

On Oct 27, 2023, 5:17:53 PM *Luis Loaiza* said: [~accountid:557058:e7d6daec-be2d-4db9-ac33-d14790035535] please take a look at this

 

Is there a way to render the user name properly? Or should we update somehow the rule? 

 

Thanks in advance your your help. 

1 answer

1 accepted

1 vote
Answer accepted
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.
October 31, 2023

@Luis Loaiza , Welcome to the Atlassian Community!

Please, try to use: {{issue.comment.last.body.text.abbreviate(100)}} instead {{issue.comments.last.body.abbreviate(100)}}

This should be works for you.

Kind regards,

Fernando

Luis Loaiza November 1, 2023

It worked. Thanks, Fernando.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events