Hi Team,
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.
Regards,
Kanaka.
I think https://library.adaptavist.com/entity/send-custom-email is probably most of what you need.
Thanks for the response.
I will try to modify this script according to my requirement and will let you know if I face any issues.
Regards,
Kanaka
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
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?
Regards,
Kanaka
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hmm. Assuming your approvers are service-management approvers, then you could combine the email script send with https://library.adaptavist.com/entity/get-email-address-of-approvers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Nope, my approvers are not service-desk approvers.
I just want to add something here that how can we get the issue I'd everytime whenever a transition is done?
Regards,
Kanaka.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Why Scriptrunner?
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.
Thanks,
Pramodh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pramodh,
Actually our client is more preferable to script runner. Is it not possible to achieve this via script?
If we can achieve this via custom event would you be able to give the detailed steps?
Regards,
Kanaka.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.