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, ...
                    • 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 ...
                    • Group change from history

                      This report is used to find who changed the group To make any changes to a query, refer to the KB article below. https://pitstop.manageengine.com/support/manageengine/ShowHomePage.do#Solutions/dv/24000633501275 SELECT wo.WORKORDERID "Request ID", ...
                    • Script to Auto close Request when the status is set to Resolved

                      This post describes the use of a python script to close requests that are set in Resolved status using Custom Schedules What is 'Custom Schedules' ? The Custom Schedules feature enables you to access any data in ServiceDesk Plus to perform customized ...
                    • Script to Auto close Request when the status is Resolved for a particular number of days

                      For version 11 and above: -> In version 11, we only have the option to set the request Auto-close for a max of 10 days -> The below script will help you to extend the auto-closure time Execution steps: 1. Go to Reports--> New Query Report and run the ...