Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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?

1 comment

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.

Like Daniel Eads likes this
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? 

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events