IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Slack action
editSlack action
editThe Slack action type uses Slack Incoming Webhooks.
Connector configuration
editSlack connectors have the following configuration properties.
- Name
- The name of the connector. The name is used to identify a connector in the management UI connector listing, or in the connector list when configuring an action.
- Webhook URL
-
The URL of the incoming webhook. See Slack Incoming Webhooks for instructions on generating this URL. If you are using the
xpack.actions.allowedHosts
setting, make sure the hostname is added to the allowed hosts.
Preconfigured action type
editmy-slack: name: preconfigured-slack-action-type actionTypeId: .slack secrets: webhookUrl: 'https://hooks.slack.com/services/abcd/efgh/ijklmnopqrstuvwxyz'
Secrets defines sensitive information for the action type.
-
webhookUrl
- A string that corresponds to Webhook URL.
Action configuration
editSlack actions have the following properties.
- Message
-
The message text, converted to the
text
field in the Webhook JSON payload. Currently only the text field is supported. Markdown, images, and other advanced formatting are not yet supported.
Configure a Slack account
editYou need a Slack webhook URL to configure a Slack account. To create a webhook URL, set up an an Incoming Webhook Integration through the Slack console:
- Log in to slack.com as a team administrator.
- Go to https://my.slack.com/services/new/incoming-webhook.
-
Select a default channel for the integration.
- Click Add Incoming Webhook Integration.
- Copy the generated webhook URL so you can paste it into your Slack connector form.