Forums

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

Send automated email to customer email account when a Support Ticket is created.

Ray January 30, 2024

Is it possible to send an email to a specific email account when a customer from the same domain creates a support ticket?  

For example...

  1. Customer bob@abc.com creates a support ticket.
  2. When the ticket is submitted by bob@abc.com an email should be sent to support@abc.com as well as bob@abc.com

This flow would only work for abc.com domain users.

 

2 answers

1 accepted

1 vote
Answer accepted
Luiz Ricardo Pereira da Silva
Contributor
January 30, 2024

Hello @Ray ,
It is possible through Automation for Jira.
Using the Variable action, create a variable containing the Reporter's E-mail:

{{issue.reporter.emailAddress}}

image.png

Create another variable that will store the Domain:

{{reporter.substringAfterLast("@")}}
image.png

Create a Condition that compares the Domain variable with the specific Domain:

image.png

Use the Send E-mail action to send an E-mail to the reporter if necessary and in the "CC" copy add the specific E-mail:

image.png

It will look something similar to this:
image.png


Hope I helped you!

Ray January 31, 2024

Thanks for the guidance Luiz.  For some reason I'm getting a success message in the Audit Log, but no email.  When I look in the Audit Log I get this message...
Audit Log.jpg

It appears to be coming from the Issue Created step.  Any help would be greatly appreciated.

Luiz Ricardo Pereira da Silva
Contributor
January 31, 2024

Hello @Ray
Could you post the automation structure so I can analyze it?
From what I can see in the image, success is linked to some action prior to the conditional, however the conditional was not accepted.
If the action of sending an email is after this conditional, it is probably because the issue does not meet the condition and the email was not sent.

Ray January 31, 2024
Ray January 31, 2024

Here's more detail @Luiz Ricardo Pereira da Silva .  I am simply just trying to test this out.  So I am creating a new issue with my own account (ray@frequencyads.com).  Hoping that it will send the email to me as the reporter and as the cc.  As I said....just trying to test this out so I know it's working before I try it with a customer.

2024-01-31_13-38-40.png2024-01-31_13-38-52.png2024-01-31_13-39-04.png2024-01-31_13-39-19.png

Luiz Ricardo Pereira da Silva
Contributor
January 31, 2024

Enter the name of the variable Reporter for reporter, this capital R is affecting its recognition in the second Variable that retrieves the domain.:
image.png
Also add an action called log action by inserting the name of the variable inside so that the result appears in the Execution log:

image.png
Create an Action log for each Variable.
This will help you with troubleshooting.

Ray February 1, 2024

@Luiz Ricardo Pereira da Silva Thanks so much for your help.  This worked perfectly.  Thanks again!

0 votes
Richard Scholtes
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.
January 31, 2024

You could also organize those users from the same domain in one customer Organization.

Then you could the create the automation that if an issue is created, check if it is from Organization abc and if yes send the mail

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