Slack
Workflows

Rename Slack Channel

4min

Description

This action renames the specified channel. This is particularly useful for teams that wish to keep the Slack channel name in-sync with the incident title, issue ticket number, etc.

Action Attributes

Document image


Name

This field is automatically set for you. You can rename this field to whatever best describes your action. The value in this field does not affect how the workflow action behave.

Channel

This field specifies which Slack channel to rename.

Some common selections:

  • Setting to {{ incident.slack_channel_id }} will rename the Slack channel of the triggering incident.
  • The Liquid snytax {{ parent_incident.slack_channel_id }} can be used for sub incidents and it will rename the Slack channel of the parent incident.

New Title

Speicify a new title for the incident channel. This field accepts Liquid variables to allow you to dynamically rename the Slack channel.

For example, if this action is taken after the incident title changes; setting the field to incident-{{ incident.started_at | date: '%Y%m%d' }}-{{ incident.title }} will rename the Slack channel to match the updated incident title. It will still maintain the #incident-20231119-<new-incident-title> format.