The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

jira - first name only in smart value

Gavin
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 Champions.
July 23, 2022

{{reporter.displayName}}, - shows first and last name

But is there a way to show just the first name?

 

this question was asked https://community.atlassian.com/t5/Jira-Service-Management/Using-firstname-of-assignee-instead-of-firstname-and-lastname/qaq-p/1761353. talks about using {{issue.assignee.displayName.split(" ").first}}. however when I use it I get nothing displayed.

 

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

5 votes
Florian Bonniec
Community Champion
July 23, 2022

Hi you can try using 

 

{{reporter.displayName.substringBefore(" ")}}

Can you give me a example of the format of a display name ?

FirstName Last name or FirstName, LastName

Regards