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: 

assignee.displayName doesn't display Unassigned when the issues isn't assigned

Neil Jones
September 24, 2020

Hi,

 

When writing a slack or email message from Jira Automation I am trying to display the assigned user or an issue in the email/slack message using {{assignee.displayName}} but if the issue is unassigned is doesn't display anything. Is there a way to get it to display "Unassigned" like it would in Jira?

Thanks

Neil

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Sherry Goyal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 27, 2020

Hello @Neil Jones 

Please try using: 

{{assignee.displayName | Unassigned}}

If displayName is unset, "Unassigned" will serve as fallback value.

Hope this helps.

 

Cheers
Sherry(A4j)

Patricia Francezi_iDev_
Community Champion
September 28, 2020

I wish we have more docs about smart values :(

Like # people like this
Neil Jones
September 28, 2020

This worked perfectly, thanks

Gabi Zavilla
February 8, 2022

This doesn't work for me I'm afraid. The assignee is shown but the Unassigned is not. Any ideas why this could be? I looked for an answer elsewhere but there is nothing out there.

Lubomir Kosaristan
March 29, 2022

Hi @Gabi Zavilla 

the syntax of example is a bit off, try this: {{assignee.displayName|"Unassigned"}} it should work (at least it works for me) :)

Like # people like this
Gabi Zavilla
March 29, 2022

Thank you @Lubomir Kosaristan 

Gabi Zavilla
April 6, 2022

This worked a perfect treat, thank you again!

Like Lubomir Kosaristan likes this
0 votes
Patricia Francezi_iDev_
Community Champion
September 27, 2020

Hi @Neil Jones 

What I would do is to perform a condition in the rule (a branch).

If assignee is empty send X message

If assignee is not empty send y message. 

 

Its normal not showing anything, as you are resquesting a value, and in Unassigned issue the information is not really present. 

I hope this helps

Neil Jones
September 28, 2020

Thanks for the help

TAGS
AUG Leaders

Atlassian Community Events