Create Slack channel for ServiceNow project task
Customer ServiceIT Service ManagementRecipe ToolsCollaborationBots
What it does
When a new or updated record appears in ServiceNow pm_project_task table with Execution Task in the summary, this automation creates a Slack channel. Team members are invited and the channel is archived so the project workspace is ready.
Who it's for
Operations teams who need a Slack channel created automatically when a ServiceNow project task is assigned.
How teams use this
Spin up a project channel in Slack
When a project task is created in ServiceNow with Execution Task in the name, a Slack channel is created and the right people are invited. The team can start collaborating right away without manual setup.
Route channels by assignment group
Use the lookup table to map different ServiceNow assignment groups to different Slack channels or workspaces. Each team gets their own channel based on who is assigned in ServiceNow.
Add project details to the channel topic
Include the ServiceNow event ID and company name in the Slack channel topic so members see the project context. Set the topic with data from the u_test_plan and core_company lookup tables.
Notify stakeholders when channel is ready
Send a message to a leadership channel when the project channel is created and archived, so stakeholders know the project workspace is set up. Include the project owner mention in the notification.
How it works
- Monitor ServiceNow for new project task. Watch the pm_project_task table in ServiceNow for a new or updated record where the assignment group matches a specific ID and the summary contains Execution Task.
- Find the Slack channel name. Search the assignment_group_slack_channel lookup table to get the channel name that corresponds to the assignment group from the ServiceNow record.
- Create the Slack channel. Create a new Slack channel with the name from the lookup table, formatted for Slack with lowercase letters, spaces removed, and limited to 22 characters.
- Send channel invites to team members. Search the slack_people lookup table to find team members and send them invites to join the new Slack channel created from ServiceNow.
- Archive the channel. Archive the Slack channel so it is preserved but no longer active for new messages once the project task setup is complete.