Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,556,475
Community Members
 
Community Events
184
Community Groups

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

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

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

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
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Sep 28, 2020

I wish we have more docs about smart values :(

This worked perfectly, thanks

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.

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) :)

This worked a perfect treat, thank you again!

Like Lubomir Kosaristan likes this
0 votes
Patricia Francezi
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Sep 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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events