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.