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
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:
Hope it helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.