From 519991342c4a831dc70d2c87deea2c00a586635f Mon Sep 17 00:00:00 2001 From: Chris Roberson Date: Mon, 14 May 2018 13:22:42 -0400 Subject: [PATCH] The text property is optional (#19034) (#19039) --- x-pack/plugins/watcher/server/models/action/slack_action.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/x-pack/plugins/watcher/server/models/action/slack_action.js b/x-pack/plugins/watcher/server/models/action/slack_action.js index 9b2589f391ed..3f07023a4a2e 100644 --- a/x-pack/plugins/watcher/server/models/action/slack_action.js +++ b/x-pack/plugins/watcher/server/models/action/slack_action.js @@ -69,9 +69,6 @@ export class SlackAction extends BaseAction { if (!json.actionJson.slack.message.to) { throw badRequest('json argument must contain an actionJson.slack.message.to property'); } - if (!json.actionJson.slack.message.text) { - throw badRequest('json argument must contain an actionJson.slack.message.text property'); - } Object.assign(props, { to: json.actionJson.slack.message.to,