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

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,556,480
Community Members
 
Community Events
184
Community Groups

Automation - extract tagged user from comment and save as a smart value

josh ke
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!
Apr 16, 2023

Hi, I have a use case where we need to have a smart value of someone comment in comments and tag another user. For example, someone put in comment as “@user please have a look. “ and we want to extract the first name and last name of this @User and save as a smart value. Just wondering if someone can help me of this? 

1 answer

1 accepted

1 vote
Answer accepted
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.
Apr 17, 2023 • edited

Hi @josh ke -- Welcome to the Atlassian Community!

When a user is mentioned in a comment, that results in the following in the field:

[~accountid:thePersonsAccountId]

So to get the name from that, I recommend you add a user custom field instead of a text one and...

One possible challenge is when you expect there to be more than one mention in a comment.  In that case, I recommend first splitting the comment on line breaks, performing the match(), and then decide how to store the users.  In this case, you would need a multi-select user field.

Kind regards,
Bill

josh ke
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!
Apr 17, 2023

Thanks for the detail explanation. This gives me some work around to solve my issue. 

Like Bill Sheboy likes this

Suggest an answer

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

Atlassian Community Events