Step 6 - New ticket notification with conditions
Learn how to send a notification to a Slack channel for new Zendesk tickets under specified conditions.
Workflow that sends a Slack notification when there is a new ticket
Discover how to enhance your workflows by adding logical conditions, enabling you to effectively create complex business processes.
Summary
How it works
- When a new Zendesk ticket is created, sends a notification to the selected Slack channel if ticket contains incident tag.
Requirements
- Zendesk connection
- Slack connection
Trigger
- Ticket created from Zendesk integration
Actions
Get ticket from Zendesk integration
Send message to channel from Slack integration
How to configure this workflow
Continued from Step 5 - Detailed new ticket notification.
1. Add a new condition
Add a new node after Get ticket action from Zendesk integration. Select Operators option and then select Condition from the opening list.
Select
All conditions below
option and add a new rule.Enter
nodes.action1.response.body.ticket.tags
in filter field, select contains option and then enterincident
in value field. This will check if the ticket's tags contain incident and will execute the true branch if this condition is satisfied.
2. Select your action (Send message to channel from Slack integration)
Go to
true
branch of your condition and add a new node. Select Actions option and then select Slack from the opening list.Select
Send message to channel
action in action selection field.Select your Slack workspace in Connection field.
On ACTION INPUTS section, select your Slack channel.
On Message blocks section, add a new Markdown block.
Add your text in the opening Markdown block field.
3. Save your workflow and test it.
Click Apply at top right corner to save your workflow.
To test it, create a new ticket in Zendesk that contains incident tag and check your Slack channel for the notification.