I have a requirement that I have two statuses called Pre-milinary and Active and I have a user picker field called Approver.
When my status is moved from Pre-milinary to Active according to approver list users get notified (via email) that this ticket is waiting for your approval.
I want to achieve this via script runner but I am not good with groovy scripting. Can someone help me out with a sample script so that I can edit according to my requirement?
Your help on this much appreciated. Thanks in advance.
I hope you are doing great!
I have tried the script which is given by you and it is executed successfully.
Thanks for the script. I have a request that for test purpose I have given my email id at the end, but the problem here is we have many approvers to be included in the script adding to the users and removing the users IDs everytime is not a good practice.
So I want to add "Approver" field in the script so that email will be sent according to the Approver field list. So how can I Modify the script according to my requirement?
You can achieve this via Custom events.
Create a custom event and add the relevant people to Notification Scheme.
Add the Event in Workflow Transition from Pre-milinary and Active to trigger the Notification to the users you have specified in Notification Scheme.
Hi, Jira users! Do you use Jira alongside Microsoft Teams? We want to hear how you’ve used the power of Jira Cloud and Microsoft Teams (via the Jira Cloud for Microsoft Teams app) to achieve a team...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events