Forums

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

How to get User full name for multi user cf in HTML email body using JMWE workflow postfunction.

kk4065896 March 31, 2021

Hi,

I have JMWE workflow post function  to sent email notification upon issue created. In that post function HTML body I want to display all attendees to meeting through single and multi user piker with there full names.  I'm using following code for single user picker and I'm wondering for multi user picker. Could you please help me with the expression to get  the result.

Single user picker: <p> MH Lead( Multi user picker field name): ${issue.get("Custom field Name").displayName}

Multi User picker: ?

Regards,

Kiran

2 answers

0 votes
David Fischer
Community Champion
March 31, 2021

On Jira Cloud, for a single-user picker field, the correct expression is:

{{issue.fields.customfield_12345.displayName}}

And for a multi-user picker field:

{{issue.fields.customfield_12345 | join(", ", "displayName")}}
kk4065896 March 31, 2021

Hi David,

Thank you for quick response. Unfortunately this code is not working for me.  I'm getting the following error.

There was an error during the execution of your script against issue RRA-19

Regards,

Kumar

David Fischer
Community Champion
March 31, 2021

Can you post a screenshot of your attempt with both the code and the full response (error)?

0 votes
David Fischer
Community Champion
March 31, 2021

Hi @kk4065896 ,

are you sure you're on Jira Cloud? The code you shared only works for Jira Server/DC...

kk4065896 March 31, 2021

Hi David,

Thank you for responding, Yes I'm using Jira cloud.

 

Regards,

Kumar

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events