Script to update Request with another Group when the request is approved

Script to update Request with another Group when the request is approved

Use case:  
Assume a requester is requesting for an gadget asset and it requires approval from their managers.  This ticket needs to be moved to "Asset" group only when the ticket gets approved.

Pre-requisite

- Python should be installed in the server and configured. You can review the instructions here
- Requests module should be installed with the python

Execution Steps:
1.  Extract the ZIP file under ..\ManageEngine\Servicedesk\integration\custom_scripts - folder.
2.  Edit the configuration.json and update the URL and Technician Key.
3. Edit update_group.py and update the group name. 
3.  Configuring a Custom Trigger:  Go to Admin > Custom Trigger > give a trigger name > Execute the action - when the request is approved > execute script - py update_group.py $COMPLETE_V3_JSON_FILE 

Note:
If you are using additional field as criteria, please go to Admin >> Business Roles >> Set the criteria >> Use the Action as Execute Script. 

                    New to ADSelfService Plus?

                      • Related Articles

                      • Update Request with another Group when the request is approved

                        Use case:   Assume a requester is requesting for an gadget asset and it requires approval from their managers.  This ticket needs to be moved to "Asset" group only when the ticket gets approved.  Depending on the availability of the requested gadget, ...
                      • Update Request with another Group when the request is approved - Deluge

                        Use case:   Assume a requester is requesting for a gadget asset and it requires approval from their managers.  This ticket needs to be moved to "Asset" group only when the ticket gets approved.  Depending on the availability of the requested gadget, ...
                      • Close the request upon adding a note.

                        Kindly follow the steps mentioned below: 1) Go to Admin >> Developer Space >> Custom Function >> Global Functions >> Copy & Paste the attached GF_Content.txt and save it with a name. Update the URL and technician key as per your instance. Refer to ...
                      • How to change status once a request has been approved or rejected

                        Prerequisite - A python environment should be configured in the SDP-MSP Server. Instructions here.  - Under Admin>Self Service Portal>Do you wish to enable On Hold scheduler when your requests are put on hold?>Should be set to 'NO' Instructions ...
                      • Update Requester from Request Description

                        Use case: When a request is submitted on behalf of a user via email, the request description contains the requester's full name. Script to update the ticket requester accordingly. Tested on builds: 14306,14500. Steps to follow: Go to Admin > Request ...