Jira bulletpoint formatting when sending message to slack via automation

vv
Contributor
September 22, 2024

Hello,

I'm saving the description of jira issue as smart value and using automation to send to slack. The problem I have is when jira issue description has some formatting like bulletpoints it comes out unformatted in Slack with lots of * **. Is there a way to preserve the bullet points from the Jira issue description?

 

2 answers

1 accepted

1 vote
Answer accepted
vv
Contributor
September 22, 2024

I found a possible reason. It's because Slack API does not support lists

https://api.slack.com/reference/surfaces/formatting#basics

Evgenii
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 22, 2024

You can try to convert to HTML encoding. According to Slack documentation it's required if you want to use special symbols in text.

1 vote
Evgenii
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 22, 2024

Hi, @vv 

 

If I'm not mistaken, you need to use text formatting, in order not to break Slack text.

Smart value will look like:  {{issue.description.jsonEncode}}


You can read about this here: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/#Encoding

Try to use jsonEncode, maybe it can help.

vv
Contributor
September 22, 2024

Thank you for the quick reply! unfortunately jsonEncode did not give the result I wanted

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events