We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parente4f87d5 commitf9087d6Copy full SHA for f9087d6
docs/admin/monitoring/notifications/slack.md
@@ -89,11 +89,11 @@ To build the server to receive webhooks and interact with Slack:
89
returnres.status(400).send("Error: request body is missing");
90
}
91
92
-const {title_markdown,body_markdown }=req.body;
93
-if (!title_markdown||!body_markdown) {
+const {title,body_markdown }=req.body;
+if (!title||!body_markdown) {
94
return res
95
.status(400)
96
- .send('Error: missing fields: "title_markdown", or "body_markdown"');
+ .send('Error: missing fields: "title", or "body_markdown"');
97
98
99
constpayload=req.body.payload;
@@ -115,11 +115,11 @@ To build the server to receive webhooks and interact with Slack:
115
116
constslackMessage= {
117
channel:userByEmail.user.id,
118
- text:body,
+ text:body_markdown,
119
blocks: [
120
{
121
type:"header",
122
- text: { type:"mrkdwn", text:title_markdown },
+ text: { type:"plain_text", text:title },
123
},
124
125
type:"section",