I am using scriptrunner to send a custom email based on a value in a custom multi-select field that will send to various folks based on their roles and the value(s) selected. The issue that I have is that I want to customize the notifications to tell the people that receive the emails what event happened that caused the email to trigger.
I am attempting to use a single listener to accomplish this and then modify the subject line based on the triggering event. I have Issue Created, Issue Update, Issue Assigned, Issue Commented, etc in my listener.
So, to the skinny of the situation, can I do this? or do I need to copy my code over and over for each event?