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

Send Slack Message formatting is not applied to the message

Edited

Slack formatting does not work either from the `Send Slack` message input field or the `Create Variable` smart value field.

 

What I did:

1. Created `Lookup Issues` with JQL

2. Created `Create variable` and nested there {{#lookupIssues}} as listed below

  • Variable name: bugIssues
  • Smart value: {{#lookupIssues}} {{issueType.name}} - <{{url}}|{{key}}> - {{summary}} {{/}}

3. Created `Send Slack` message and pasted there {{bugIssues}}

 

All works great but without any formatting like bullet points (*) or newline \n for slack whether it is injected into the Smart value of the variable or the Send slack message field.

Therefore, all issues are just dumped in one message without separation.

 

Please point me on how to inject at least \n so each item from the `Smart value` of the {{#lookupIssues}} would be listed on a new line of the Slack message.

 

Side note: The current approach is used to have 2 types of Issues filtered and posted in one Slack message.

Google Chrome_2022-05-26 23-29-27@2x.jpg

Google Chrome_2022-05-26 23-14-25@2x.jpgGoogle Chrome_2022-05-26 23-26-29@2x.jpg

2 answers

The following worked for me:

 

{{#lookupIssues}}• {{issueType.name}} - <{{url}}|{{key}}> - {{summary}}
{{/}}

 

Note the {{/}} is forced to be on a new line.

0 votes
Daniel Eads
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 31, 2022

Hi @Romans Averins ,

The message created from Automation should follow Slack's markdown formatting - so to include a bullet point and newline in your message, this modification to your smart value should work:

{{#lookupIssues}} {{issueType.name}} - <{{url}}|{{key}}> - {{summary}} \n{{/}}

Cheers,
Daniel

Hey @Daniel Eads ,

Thank you for the response! This is exactly why the topic is raised as the `\n` is not working in this case.

Tried it in various ways, even {{\n}}, or {{/}} \n, etc. but still slack is not recognizing it in the way it should.

 

Hence, copy-pasted the suggested solution and it just prints out all in one line with typed \n in between.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events