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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

User ID is being displayed in automation instead of User name

Luis Loaiza
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!
Oct 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.
Oct 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
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!
Nov 01, 2023

It worked. Thanks, Fernando.

Suggest an answer

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

Atlassian Community Events