Automation: Send email to adress in custom field

Deleted user March 25, 2020

Hello everyone: 

I would like to automate a process in which the Action "Send Email" allows me to send it to a specific adress in a custom field of the issue. 

Would it be possible to do it through smart values?

 

3 answers

1 accepted

0 votes
Answer accepted
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 26, 2020

Hello @[deleted]

Thank you for reaching out.

Per your description, I understand you have added a custom field in your Jira project and you need to automatically send a notification to any users added to that custom field upon a specific action. Is that correct?

The Smart value that should be used to configure the Automation rule will depend on the custom field type you are using. That being said, we need the following information to provide you an exact answer:

1- What is the type of the custom field you are using?

2- Can you let us know if you are using a Classic or Next-gen Project?

Supposing you are using a User picker (Multiple Users) custom field in a Classic project, you can properly access the values of this field by using the smart values mentioned in the documentation below:

Use smart values to access listed values 

Giving you a practical example, let's suppose you have a multi-user picker custom field called "My User field". The query below would create a comma-separated list of the user's e-mail addresses in your field:

{{#issue.My User Field}}{{emailAddress}}, {{/}}

Let us know if you have any questions.

Deleted user March 28, 2020

Hello Petter

Thanks so much for responding.

The custom field I would use is not a User picker, but a Text field, in which, for example, if I introduce the adress sendmail@example.com, the action Send Email could take this value and proceed with the sending .The project is Classic. 

In adittion, I would like to follow the same method in the body of the message with other custom fields. I would like that, if I have the field Name of the product in the issue, the body message varies with the value I have introduced.  I understand the method would be the same as the first question.

Like Sara Câmara likes this
Sara Câmara
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 8, 2020

Hello Jorge, 


I was able to use a custom text field with the following reference format: {{issue.customField_100xx}}

jira.png

Where 100xx is the identification number of your custom field.
Check your field ID at his URL.

jira2.png

This worked for me.

Like # people like this
Jessica Golden
Contributor
September 15, 2020

@[deleted]  Did this work for you? I am trying to do the exact same thing you described and this didn't work for me. My outgoing emails are still failing. 

Tor Magne Svendsen
Contributor
January 22, 2021

I am using a custom text field as input to the to: address in Automation for Jira. 

It is a multi-line text field and works with comma seperated email addresses. 

{{issue.customfield_101xx.value}} 

Does not work as the smart-value in the to: address. 

However

{{customfield_101xx}} 

works. 

the email addresses needs to be in the format: 

user1@example.com, user2@example.com, user3@example.com

not 

user1@example.com
user2@example.com
user3@example.com
Like # people like this
Ricardo Martinez
Contributor
June 9, 2022

Sara Câmara solution works perfectly!

 

Thanks!

Leo May 16, 2023

Hello,

this is quite the function Im looking for. What is different I want to use the custom field user picker so jira already knows there e-mail addresses.

But it dosent send e-mails to the added users. Do you have any idea what i have to configure more?

Thank you for any input

Elsa Li July 28, 2023

hi, were you able to solve this? I ran into the same issue and tried various format, none of them worked.

0 votes
Hossam.Khalil December 5, 2024

@Tor Magne Svendsen 

Thank you so much!!! :)

0 votes
Sysad
Contributor
January 12, 2021

Hi @Petter Gonçalves 

 

How do we insert linked issue keys in the email body while sending emails from Jira automation plugin?

Tor Magne Svendsen
Contributor
January 22, 2021

Leads to the issue as viewed in the portal: 

Link to issue.png

If you want the internal link (for Agents) you can just use the smart value {{url}} instead of {{url.customer}}

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events