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 ADManager Plus?

        New to ADSelfService Plus?

          Resources

              • Related Articles

              • 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 ...
              • 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 ...
              • Python script to update request status

                This article consists of a python script to update the request status based on a criteria set in Custom trigger. For installation and setup of PYTHON, please refer the below link, ...
              • Query_ Changes approved by(approvals tab) and request ID associated to it.

                These are in reference to change initiated due to Requests and who approved the change approval stage alone. MSSQL: SELECT "chdt"."CHANGEID" AS "Change ID", "chdt"."TITLE" AS "Title", LONGTODATE("chdt"."CREATEDTIME") AS "Created Time", ...
              • Script to AutoShare Request to Groups

                Please follow the below link to setup python on the server ​ https://pitstop.manageengine.com/portal/en/kb/articles/how-to-setup-python-on-the-server-11-11-2019 Steps to configure 1.  Extract the attached zip file in <Home>/integration/custom_scripts ...