Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jira Automations Send email to new/changed person in user picker field fieldChange

Joshua Wyss
November 16, 2022

I want to be able to use Jira Automations to send an email to the new person in a user picker field (Assignee, custom, etc.) and not all people. I want this to trigger on 2 different user picker fields so I want to use the {{fieldChange}} smart value but it does not provide the email address.

 

Scenario 1

For example, when a new person is assigned to a Jira Issue I want to trigger and send only that new person an email.

Scenario 2

When a new person is added to a multi-person person selector custom field I want to trigger and only send an email to that new person and not others.

 

I have tried

In the 'Send an email" action I've tried adding the following to the "To:" field but none have succeeded.

  • {{#fieldChange}}{{emailAddress}}{{/}}
  • {{fieldChange}}
  • {{fieldChange.to}}
  • {{#fieldChange}}{{emailAddress}}{{/}}
  • {{addedfieldChange.values}}

The Error:

Send Email:

Could not send email, the 'To' address field is empty. If you have referenced a field it may be empty.

The same error happens for all options.

Related questions:
https://community.atlassian.com/t5/Jira-Software-questions/How-can-I-get-email-address-from-changed-field/qaq-p/1484803

https://community.atlassian.com/t5/Jira-questions/Jira-Automation-How-to-send-mail-only-to-added-User/qaq-p/1443188

2 answers

0 votes
Julie Vu [Beenicon]
Atlassian Partner
May 23, 2018

Hi Leon,

What integration add-on are you using? I guess it's just a bug. Have you tried uninstalling then reinstalling the add-on again?

If you're done with those steps but still experience the bug, I would suggest you give it a try with this: https://marketplace.atlassian.com/apps/1218732/slack-messages-for-jira-cloud?hosting=cloud&tab=overview

The add-on works perfectly to our team. Hope this helps!

Cheers,

Julie

Leon P
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!
May 24, 2018

We removed the app and revoked all permissions and then started again and now it is just in the channel we want. The bug seemed to be that removing it from a channel did not stop it still positing.

Julie Vu [Beenicon]
Atlassian Partner
May 24, 2018

Hi Leon,

So now is the integration add-on working functionally to your team? Have you tried contacting the app for further support?

0 votes
Jason Galea
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
May 22, 2018

Hi Leon,

Under Settings > Systems > WebHooks, make sure to remove or disable the unwanted notifications to slack.

Also check if these post-functions are set on Automation add-ons like "Script Runner for JIRA" and "Automation for JIRA" sometimes you find settings set to send alerts on slack channels after a certain condition is met. 

Cheers,
Jason

Suggest an answer

Log in or Sign up to answer