How to notify custom role users via email when assigned in JIRA?

Hey JIRA experts!

I’m trying to figure out how to send emails to users when they’re assigned to custom user fields in our JIRA setup. We’ve got fields like ‘Business Analyst’ and ‘Developer’ but they’re not the same as the regular ‘Assigned To’ field.

I’ve looked through the notification settings but can’t find a way to trigger emails for these custom fields. It works fine for the main assignee but not for our special roles.

Is there any way to make this happen? Maybe a plugin or some clever workaround? I’m really stuck here and would appreciate any ideas!

Thanks in advance for your help!

I’ve dealt with this issue before in a previous role. We opted for the JIRA Automation add-on because it allowed us to create custom rules without too much hassle. We set up a rule that activated whenever an issue was created or updated, then checked that the necessary custom fields were populated before triggering an email. It required some trial and error, mainly to keep the conditions tight and avoid sending unnecessary notifications. In cases where JIRA Automation isn’t available, using webhooks combined with a custom script might do the trick. Good luck!

Having worked extensively with JIRA, I can suggest another approach. Consider using the ScriptRunner plugin. It’s a powerful tool that allows you to create custom listeners and post-functions. You can write a script that triggers when an issue is created or updated, checks if the custom fields are populated, and sends email notifications accordingly. The script can be tailored to your specific needs and integrated seamlessly into your workflow. While it requires some scripting knowledge, it offers more flexibility than built-in options. Just be cautious with testing to avoid overwhelming users with notifications. If you need help with implementation, JIRA’s community forums are a great resource.