diff --git a/docs/management/connectors/action-types/slack.asciidoc b/docs/management/connectors/action-types/slack.asciidoc index c4f1ea6799fb8..14e08d3cc6f25 100644 --- a/docs/management/connectors/action-types/slack.asciidoc +++ b/docs/management/connectors/action-types/slack.asciidoc @@ -21,14 +21,15 @@ You can choose to use a webhook URL that's specific to a single channel. For exa image::management/connectors/images/slack-webhook-connector.png[Slack connector] // NOTE: This is an autogenerated screenshot. Do not edit it directly. -Alternatively, you can create a connector that supports multiple channels. For example: +Alternatively, you can create a connector that supports multiple channels. +For example: [role="screenshot"] image::management/connectors/images/slack-api-connector.png[Slack API connector] // NOTE: This is an autogenerated screenshot. Do not edit it directly. -If you use the latter method, you choose your channel when you create a rule action. -Thus a connector can be used in multiple rules and actions to communicate with different channels. +If you use the latter method, you must provide a valid list of Slack channel IDs. +When you create a rule, each action can communicate with one of these channels. For Slack setup details, go to <>. @@ -36,20 +37,15 @@ For Slack setup details, go to <>. [[slack-action-configuration]] === Test connectors -You can test connectors with the <> or -as you're creating or editing the connector in {kib}. For example: +You can test connectors as you're creating or editing the connector in {kib}. +For example: [role="screenshot"] -image::management/connectors/images/slack-api-params.png[Slack API connector test] +image::management/connectors/images/slack-webhook-params.png[Slack webhook connector test] // NOTE: This is an autogenerated screenshot. Do not edit it directly. -Slack actions have the following properties: - -Channels:: -One or more channels that your Slack app has access to. -This option is available only in the web API type of connector. - -Message:: The Slack message text, which cannot contain Markdown, images, or other advanced formatting. +Slack connector actions have message text, which cannot contain Markdown, images, or other advanced formatting. +For the web API type of connector, you must also choose one of the channel IDs. [float] [[slack-connector-networking-configuration]] @@ -83,3 +79,4 @@ Before you can create a Slack connector, you must configure your account and obt . Copy the `Bot User OAuth Token` so you can paste it into your Slack connector form. . If you need to send messages to a private channel, you need to write `/invite @App_name` in it. Putting "@" triggers Slack to start auto-suggesting, which is why it then becomes easy to find your app name in the list. +. To find a channel ID (for example, `C123ABC456`), view the channel details. diff --git a/docs/management/connectors/images/slack-api-connector.png b/docs/management/connectors/images/slack-api-connector.png index 41eef0b73d9c8..815b547070b1b 100644 Binary files a/docs/management/connectors/images/slack-api-connector.png and b/docs/management/connectors/images/slack-api-connector.png differ diff --git a/docs/management/connectors/images/slack-api-params.png b/docs/management/connectors/images/slack-api-params.png deleted file mode 100644 index a3cbb42b5250f..0000000000000 Binary files a/docs/management/connectors/images/slack-api-params.png and /dev/null differ diff --git a/docs/management/connectors/images/slack-webhook-params.png b/docs/management/connectors/images/slack-webhook-params.png new file mode 100644 index 0000000000000..7ec14a906c409 Binary files /dev/null and b/docs/management/connectors/images/slack-webhook-params.png differ diff --git a/x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/slack_connector.ts b/x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/slack_connector.ts index a7f96bbc2eb9e..396f0568781b2 100644 --- a/x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/slack_connector.ts +++ b/x-pack/test/screenshot_creation/apps/response_ops_docs/stack_connectors/slack_connector.ts @@ -28,11 +28,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { await testSubjects.setValue('nameInput', 'Slack api test connector'); await testSubjects.setValue('secrets.token-input', 'xoxb-XXXX-XXXX-XXXX'); await commonScreenshots.takeScreenshot('slack-api-connector', screenshotDirectories); - await testSubjects.click('create-connector-flyout-save-test-btn'); - await testSubjects.click('toastCloseButton'); - await pageObjects.common.closeToast(); - await commonScreenshots.takeScreenshot('slack-api-params', screenshotDirectories); - await testSubjects.click('euiFlyoutCloseButton'); + await testSubjects.click('create-connector-flyout-back-btn'); }); it('slack webhook connector screenshots', async () => {