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 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 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

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events