Update status using Python script in 11.0

Update status using Python script in 11.0

Using a Python script via custom trigger, we can update the status invoking an API call.

Find the attached update_req_status.py and configuration.json file

1. Move both the files to <SCP Home>/integration/custom_Scripts folder.

2. Edit the update_req_status.py and set the status that needs to be set when the trigger is executed.

3. Edit the configuration.json file and provide the necessary details including the API Key.

4. Create a Custom Trigger depending on your requirement like below:

5. Based on the criteria, the trigger invokes the script and the status is set.

Note: This works only for 11.0 as use V3 API.

      New to ADSelfService Plus?


            • Related Articles

            • Scripts to update request status when a new reply is received.

              Please do refer to the below steps to change the status when a Contact sends a new reply to the ticket.   1. Download the script files from the below link and extract them and place it under..\ManageEngine\SupportCenter\integration\custom_scripts - ...
            • How to setup Python on the Server

              This article explains how to set up the ServiceDesk plus server to run python scripts. 1. The first step is to install python on the application server and you can download it from here. Any version above 3.4.1 should work fine. Start the setup and ...
            • Script to Notify Support Reps when a new reply is received for Unassigned Requests

              Please do follow the below steps to notify support reps when an unassigned request is updated or when a reply is received.  1. Download the configuration.json file, sendMail.py file, requestobj.json file from the below link: ...
            • Custom Script to enable "remove login" option for contacts in SCP 8.1

              Use case: To disable login for contacts in bulk from Contacts module. The attached CustomScripts.js can be moved to SupportCenter/custom/scripts directory.  Browser cache needs to be cleared for the script to work as expected
            • Script to satisfy first response SLA in SCP 11

              As of now only for the following scenarios, First response can be marked in the SupportCenter application: * Notes addition * Worklog addition * Technicians manual response Apart from this if you want to mark any other actions in the application as ...