Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,366,263
Community Members
 
Community Events
168
Community Groups

Email located in Summary of ticket

We would like to set up an auto-response to an email/ticket in which the response email is located in the email Subject header or in the case of Jira the Summary field. Can the email be stripped from the Summary and used as a response email in automation? The other option is to use the reply-to email field which contains the correct email that we want to setup with auto-response but I understand that JSM does not support that field.

 

Sincerely,

Robert

1 answer

2 votes

Hello @Robert Munoz,

Welcome to the Atlassian Community!

Testing on my local site and with the great help of my colleague, we were able to create an automation rule that will get the email address from the summary laugh

In this case, it’s necessary to use Regex and create a variable that will store the email address added to the summary so then, it can be added as the “To” on the Send email action.

Go to the automation page and create a rule as it follows: 

When: Issue created

Then: Create variable

Add a name for the variable, here we are using “email” and the smart value will be: 

{{issue.summary.match("([a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)")}}

Screen Shot 2021-07-19 at 17.14.41.png

Then, add another action that will be “Send email” and on “To” add the variable that you previously created.

Screen Shot 2021-07-19 at 17.15.12.png

Hope this helps!

Kind regards,
Angélica

Hi Angélica,

I just created an automation rule using your email smart value regex and wow! That seems to do the trick! Thank you and your colleague very much! 

 

Sincerely,

Robert Munoz

Like Angélica Luz likes this

@Angélica Luz  would this work with a custom field or a lookupObjects smartvalue.

I tried but couldn't come up with something that worked.

I just end up with 
Could not send email, the 'To' address field is empty. If you have referenced a field it may be empty.
all the time.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS

Atlassian Community Events