Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

send automated emails with an email on the description field

Lucas de Souza October 29, 2023

Hey everyone.

I hope you are all doing well today.

 

I would like to ask if it is possible to create an automation which sends an email to an email written in the description field. Will give an example.

Issue Summary -> Onboarding: john.kai@test.io

Description ->  

Dear Infrastructure Team,

The following employee is joining us:

First name: John
Surname: Kai
Department: Demand
Teams: Demand IT
Supervisor: lucas.souza@test.io

 

The automation should be able to send an email to lucas.souza@test.io when the issue is created, can I get the supervisor's email with an automation and send an email to the supervisor?

 

thanks a lot 

2 answers

2 votes
Kseniia Trushnikova
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 29, 2023

Hi @Lucas de Souza,

Sure, try to use this regex to get email from Description:

{{issue.description.match("([a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+)")}}

You can create variable with this regex and then use it in the action Send email, here's the example:

Screenshot 2023-10-29 at 13.01.05.png

Screenshot 2023-10-29 at 13.02.47.png

Hope it helps.

Lucas de Souza October 29, 2023

Hello @Kseniia Trushnikova 

I will test this solution and let you know if it works.

thanks a lot.

0 votes
Joseph Chung Yin
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 29, 2023

@Lucas de Souza -

In addition to what @Kseniia Trushnikova suggested, please note that by default in each JSM project, there is also the project notification configuration where default system notification can be configured to send to specific users too without the need of automation rule on issue creation event.

The default system notification is different than the custom email content.

Hope this also helps.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Technology Applications Team

Viasat Inc.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events