You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Dear community!
Please help to figure out. I am trying to sent message from jira to my channel with overdue tickets and I'd like to reflect assignee name in it
I tried
{{#lookupIssues}}
*<{{url}}|{{key}}|{{assignee}}>
{{/}}
but it sends assignee code instead of name
I also tried
{{assignee.displayName}}
but it brings the error
Any ways to reflect assignee name here?
Thanks in advance for your answers!
Howdy @Daria Pavlova ,
Looks like there's a couple things going on here. You've got a lookup list, are trying to generate a URL using Slack syntax, and use a smart value for the assignee. Based on these factors, I think this matches your intent:
{{#lookupIssues}}
*<{{url}}|{{key}} - {{Summary}}>: {{assignee.displayName}}
{{/}}
This should output something that looks like this:
CONFSERVER-2358 - Rename "blog post" to "News": Daniel Eads
The error you saw was that the Slack URL patterns are "<<link|text>>" - the extra "|" character between key and assignee in your example was throwing it for a loop. If you want the name hyperlinked as well, just include it without the extra bar - here's a working version of your first example:
{{#lookupIssues}}
*<{{url}}|{{key}} {{assignee.displayName}}>>
{{/}}
which would look like:
Cheers,
Daniel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is this a ScriptRunner script? If so, you'd reference the assignee with something like $issue.assignee
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.