Send notification mail based on custom field value updated ?

How to trigger notification mail to send only watchers 
depends on the custom field(Trigger) value is change to "Red_Flag" during all workflow transition status ?

I have to trigger the mail based on the custom field(Select list) value changes to "Red_Flag" during the transition,is it possible ?

How to trigger a mail based on custom field updated and customized mail content?

Please give me some suggestions,thank you!

2 answers

1 accepted

1 vote
Accepted answer
Tarun Sapra Community Champion Aug 22, 2017

Changing the custom field would trigger "Issue update" notification which is a generic notification. In order to make sure that the notification is because of the change of custom field, you would need to write custom listeners.

https://developer.atlassian.com/jiradev/jira-platform/guides/other/tutorial-writing-jira-event-listeners-with-the-atlassian-event-library

If you script runner plugin then it becomes even more easy

https://scriptrunner.adaptavist.com/5.0.0/jira/listeners.html

https://scriptrunner.adaptavist.com/5.0.0/jira/listeners.html#_custom_listeners 

sample 

https://community.atlassian.com/t5/Product-Apps-questions/Custom-listener-to-detect-User-Picker-field-change-and-copy/qaq-p/440758

Is it possible  to send mail to only watchers group when custom field updated to "Red_Flag"?

I have already installed script runner plugin but I can't find the suitable built-in scripts.

Thanks for your great support.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Wednesday in Jira

Make your Atlassian Cloud products more secure: our NEW admin security guide

Hey admins! I’m Dave, Principal Product Manager here at Atlassian working on our cloud platform and security products. Cloud security is a moving target. As you adopt more products, employees consta...

44 views 0 2
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you