Hello All,
How to send an email notification to a group on custom field value selection when issue is created?
Example: We have a custom field called Product(single select) and it has options Part1, Part2, Part3 and we have 3 groups Group 1, Group 2, Group 3. If user selects option Part1 it has to send notification the users in the Group 1 same as Part2 is selected it has to send notifications to Group 2.
I have added "Fire a Issue Created event(script runner)" on custom field value selection in post function as below but how to add a condition to send email to particular group on custom field value selection?
cfValues['Product']?.value == 'Part1'
I am new to scripting. Can any one please help me.
Thanks in Advance,
Mani