This article contains additional information on the Create a channel in Slack for each Jira ticket status change template. You can find this template in the template picker when creating new automation.
This template creates a new Slack channel, invites the members, and sends a message to the channel along with the Jira ticket information when there is a change in the status of the Jira ticket. The template creates channels only for tickets with status changes from New to Committed, New to In Progress, or New to Designing.
You can modify this template by using the Microsoft Teams connector instead of the Slack connector.
For example, if a user creates a ticket in Jira and changes the status from To Do to In Progress, the template will create a Slack channel with the name of the Jira ticket number, invite users to the channel, and sends the message along with the Jira ticket information to the assignee, reporter, and the project manager of the ticket.
Follow these steps to set up the input values in the template:
Set the value for the project_manager, which specifies the Slack channel's user ID of the project manager.
Set the value of the debug_mode to Yes or No.
Set the value for the Name, which specifies the name the Slack channel should begin with. Example: QCS-Test is the value set for the Name variable, so the name of the channel after the execution will be QCS-Test-IM-101 where IM-101 is the Jira ticket number.
Note: Ensure that the Name value does not contain spaces.
Retrieve the list of newly created Jira tickets using the List New And Updated Issues Incrementally block and set the JQL query value as required. The JQL query can be set as per the user's requirement.
Store the assignee and reporter names of the ticket in the variable Assignee and Reporter.
List all the users from the Slack channel using the List All Users block and filter the users that are not deleted.
Lookup for assignee and reporter in the filtered users' list.
Create a Slack channel using the Create channel block and set the name of the channel using the ticket name/number and store the channel ID in the variable.
Invite the assignee, reporter, and project manager to the created channel using the Invite Users To Channel block and send the message along with the ticket details.