Forums

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

Can you just select the first name from 'displayname'

SGC Associates Ltd
Contributor
December 31, 2024

 

Can you just select the first name from 'displayname'

I am trying to add it in a rule when it adds a comment

It shows the full name, I just want the first name

Is this possible

1 answer

3 votes
Walter Buggenhout
Community Champion
December 31, 2024

Hi @SGC Associates Ltd and welcome to the Community!

You can use the split function in smart values to parse the returned displayname. Assuming your you want to address the reporter and user display names are 'firstname' "<space>" 'lastname', the following should return the reporter's first name

{{reporter.displayName.split(" ").first}}

As a reference for smart values for text fields, see this support article.

Hope this helps! 

Suggest an answer

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

Atlassian Community Events