I want to sent issue created email to users and groups per custom field's value when Issue Creation.
e.g. When create issue, if custom field:Category is 'A', want to send Issue Created email to users
(user_1 and user_2) and groups (group_1 and group_2). If custom field:Category is 'B', want to send Issue
Created email to users (user_3 and user_4) and groups (group_3 and group_4).
Is this possible by Script Runner at post function when create issue? if yes, could you show me sample script, please?