The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Ability to format Slack messages using markdown

Tõnis Pool
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 13, 2021

EDIT: everything working, see below comment why we thought it didn't work.

Slack supports markdown formatting, but looks like the Opsgenie Slack integration doesn't specify (or allow to configure) this.

I'm guessing, but looks like Opsgenie alerts are sent as attachements to Slack. The API would allow to specify some fields to have markdown formatting (using the `mrkdwn_in` field) to get nicer notifications. See:
https://api.slack.com/reference/messaging/attachments#example

Have you already discussed this feature?

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Tõnis Pool
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 15, 2021

Answering my own question - as usual the issue was between the chair and the monitor.

Turns out markdown formatting already does work in the Opsgenie Slack plugin, the issue we were having was caused by YAML multiline strings formatting (the differences between `|`, `|-`, `>` and `>-`).

That combined with the fact that slack's markdown for links doesn't work when there's a newline:
<some_url|Description>
VS
<some_url
|Description> 

Created the illusion that markdown was not supported.

0 votes
Tarikur Rahaman
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 12, 2024

slack support markdown but opsgenie support html tag for formating. If I use markdown then slack msgs are good but opsgenie alert description are not. 

How did you overcome this problem? 

TAGS
AUG Leaders

Atlassian Community Events