How to add Resolution and Close Requests using Custom Trigger (Python)

How to add Resolution and Close Requests using Custom Trigger (Python)

We can achieve it by using the custom trigger feature along with a python script. We can set a trigger based on which the script will execute, the script will add the resolution and set the status to 'Closed'

You can modify the condition for the custom trigger and the script according to your configuration and requirements. Please test this solution in a UAT before production. While implementing in production, test the solution with 5-10 tickets. Once your requirements are met, you can perform in bulk. 


Python should be configured in the server. If it's not already installed, click here for instructions. 


1. Download the script attached and paste it under ManageEngine\ServiceDeskPlus-MSP\integration\custom_scripts. 

2. Edit the script and configure the required details. We have marked the section as #-------------Input----------- and have specified inline instructions. 

3. After saving the script, go to Admin>Custom Triggers>As an example, I've set to trigger the script upon selecting the technician to "John "

You can set the trigger as per your configurations. 

4. Once the condition is triggered, you can view the trace in the history 

Any errors in the process will also reflect in history. 

                    New to ADSelfService Plus?

                      • Related Articles

                      • 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 ...
                      • Script to add worklog using custom schedule

                        What is a Custom Schedule? Custom Schedules are actions scheduled on a specific date and time with or without repeat frequency. The actions are specified in a customized script file. Any data from ServiceDesk Plus can be sent to the script through ...
                      • Create New request using Python Script

                        Script to raise a new request using Python Script. 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 Steps 1. Download the zip file from ...
                      • Script to Auto close a request by adding a resolution using deluge script

                        Please note the script provided will work only from builds 10600 and above 1: Download the attached script and extract it. 2: Go to Admin > Request Custom Functions > Global function > New > Paste the content from the attachment 1.configuration.txt ...
                      • Notification script using Custom function in custom trigger

                        This is applicable from 10600 builds. From 10600 , Business rules dont have Email notification feature. The same use case be achieved through Custom triggers feature as mentioned below. Script to enable notification of request creation using custom ...