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 Leaders.
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

3 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

Suggest an answer

Log in or Sign up to answer