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
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)
I wish we have more docs about smart values :(
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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) :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.