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,299,398
Community Members
 
Community Events
165
Community Groups

Using firstname of assignee instead of firstname and lastname

Hello,

I would like to use the first name in email notifications and try to remove the last name.

So if I use the smart value {{issue.assignee.displayName}} I receive the whole name, first and second name.

With {{issue.assignee.first.name.asJsonString}} a get nothing.

Is there any way to parse the string until the first space?

Thanks

1 answer

1 accepted

2 votes
Answer accepted

Just figured it out. It works fine with

{{issue.assignee.displayName.split(" ").first}}

Oh My God... Is command perfect

Like roberto_mory likes this

Yes, this really works. :-)

Like roberto_mory likes this

thanks for the replay

Cheers Martin

Like roberto_mory likes this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Service Management

Coming Soon: Insight Changing to Assets

The 2020 acquisition of Mindville added powerful asset and configuration management capabilities to Jira Service Management in the form of Insight. Following the completion of that integration, custo...

402 views 3 12
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you