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,558,929
Community Members
 
Community Events
184
Community Groups

Message format for assignee (Jira>Slack integration)

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!

2 answers

1 accepted

0 votes
Answer accepted
Daniel Eads
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 05, 2023

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:

CONFSERVER-2358 Daniel Eads

 

Cheers,
Daniel

Thank you Daniel, it works perfectly!

You're amazing! 

1 vote
Ken McClean
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 05, 2023

Is this a ScriptRunner script? If so, you'd reference the assignee with something like $issue.assignee 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events