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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,551,908
Community Members
 
Community Events
184
Community Groups

Automation: Send email to adress in custom field

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?

 

2 answers

Hi @Petter Gonçalves 

 

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

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}}

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

Hello @Jorge P.

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.

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

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

@Jorge P.  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. 

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

Sara Câmara solution works perfectly!

 

Thanks!

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

Suggest an answer

Log in or Sign up to answer