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: 

I have a question about the issue.assignee.dsiplayName smart value

Renee Geffre
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!
July 20, 2023

I am setting up automation notifications and I want to include the name of the assignee as part of the body of the email.  I can successfully add their name using the {{issue.assignee.displayName}} smart value, however our active directory is set to lastname, firstname so that is how the display name appears in the email.

I was able to use the split function to display just the first name or just the last name but I have not been able to get it to chnage the order and show the displayName as Firstname, Lastname.

These options get me the first name only:

{{issue.assignee.displayName.split (",").last}}

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

and this got me the last name only:

{{issue.assignee.displayName.aplit (",").first | last}}

 

Does anyone know a way to do this?

 

For clarity here is a sample of what I get using just the standard smart value:

"Please work with Geffre, Renee, the primary automatically assigned to these request types to determine if any assistance is required to balance workloads. If ..."

I want it to read:

"Please work with Renee Geffre, the primary automatically assigned to these request types..."

 

For now I am adding the email address of the assignee instead, but that isn't optimal either.

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

2 votes
Sanjog Sigdel
Community Champion
July 21, 2023

@Renee Geffre Did you try the Display Name Smart value?

{{issue.watchers.displayName}}

This gives you the name which is actually displayed for the user in their Jira.

1 vote
John Funk
Community Champion
July 21, 2023

Hi Renee - Welcome to the Atlassian Community!

What are the values you get for each example that you posted in your question? 

TAGS
AUG Leaders

Atlassian Community Events