Can you just select the first name from 'displayname'

SGC Associates Ltd
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!
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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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