Mention a Team in Jira Cloud Automation using the Add Comment action
Platform Notice: Cloud Only - This article only applies to Atlassian apps on the cloud platform.
Summary
This method only applies to Jira Cloud. It uses the Add comment action in an automation flow to add a link to an Atlassian team in a work item comment.
Solution
Automating Comment Addition for a Jira Team upon Ticket Creation
It is possible to automate the process so that when a ticket is created, a comment is automatically written for a Jira Team. Here's a concise step-by-step guide on how to set this up using Jira Automation:
Navigate to Your Project Settings: Go to the project where you want to set up this automation.
Access Automation: Click on Project Settings > Automation.
Create a New Rule: Click on Create Rule at the top right corner.
Select the Trigger: Choose Issue Created as the trigger for this rule. This ensures the automation runs every time a new ticket is created.
Create variable: In the Create variable action, please assign the value of the team assigned in the ticket to the smart variable TeamID. Please use the customfield ID by navigating to the Custom field page and checking the Team field ID: {{issue.customfield_10001}} --> Replace with your "Team" customfieldID
Add Action: After setting the trigger, click on Add action and select Add Comment.
Configure the Comment: In the " Add Comment " action, type the message you want to be automatically posted. You can use smart values to personalise the comment, such as mentioning the reporter or including the issue key.
Basically, we have to manipulate the smart values to create a link of the Team and then add it to the comment. Please add the comment like the below value:
Hello [{{issue.customfield_10001.name}}|https://sitename.atlassian.net/jira/people/team/{{TeamID}}?ref=jira$&src=issue], Comment added!Save the Rule: Give your rule a name and save it.
By this automation rule, each time a ticket is generated within the designated project, your predefined comment will be automatically added.
You can't send an email to a team using automation flows or notification schemes. As a workaround, create an email distribution list for the team and use the Send email action in your automation flow to notify it. A suggestion to support the Team field in notification schemes and automation is tracked in :
Was this helpful?