Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How To Set Up Auto CC In Project Automation

Lea S October 2, 2024

Hi, JIRA experts!

In my team, different JIRA tasks are assigned to different teammates. In order to be notified about each JIRA ticket, the assigners will assign to a specific assignee, then manually type my username in the comment section so that I can receive an email notification too.

How can i set an automation rule whereby once an assignee is assigned, me (and another teammate) will automatically receive an email notification (without requiring the assigner to manually type my name in the comments)?

Different assignees will have a different cc list. For example, Assignee A's task is to be auto cc-ed to Person B & C, while Assignee D's task is to be auto cc-ed to Person B & E.

Would appreciate if there's a step-by-step guide because I'm a noob at JIRA settings. Thanks!



2 answers

1 vote
Rilwan Ahmed
Community Champion
October 2, 2024

Hi @Lea S ,

Project admin or Jira administrator can make use of Automation rule for this.

i.e. Go to project settings --> Automation. Then Create new rule as below.

When: Issue Assigned

IF: "JQL Condition". Add assignee JQL to map

Then : Send Email

Sample screenshot attached for your reference

image.png

Lea S October 3, 2024

Thanks! I've managed to get the system to send me an email. However, the notification email is very basic, with a simple message saying Issue XX has been assigned to ABC.

How can I make the email look like a typical JIRA notification email that you get when you're mentioned in a JIRA ticket? With links, preview of the comment, issue number etc.

Rilwan Ahmed
Community Champion
October 6, 2024

Hi @Lea S ,

Make use of texts and smart values in the "Content" section. To know what all smart values are available, click in " { } " as shown in attached screenshot. 

image.png

More details is inhttps://support.atlassian.com/cloud-automation/docs/smart-values-in-jira-automation/

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 3, 2024

Hi @Rilwan Ahmed and @Lea S 

For this scenario, the rule needs to use the if / else condition structure rather than individual conditions.  Otherwise the rule will halt on the first failed condition.

 

Another alternative is to use a Lookup Table, where the keys are the assignee's displayName and the values are the email addresses of those to notify.  For example:

  • trigger: issue assigned
  • condition: assignee is not empty
  • action: create lookup table
    • name: tblUsersToNotify
      • row
        • key: Bill
        • value: list of user email addresses, delimited by semicolons
      • row
        • key: Lea
        • value: list of user email addresses, delimited by semicolons
      • ...
  • action: send email
    • use this for the recipient list:
      • {{tblUsersToNotify.get(issue.assignee.displayName).split(";")}}

 

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events