Script to bulk close change using deluge script based on the status

Script to bulk close change using deluge script based on the status

The following script will help you bulk close changes based on the status of change using custom schedules

1. Go to Reports tab --> New query report --> copy the query to the query editor and run the report. Save the report in the folder.

The query is available in the attachment (query.txt).

Modify the status in the query.

2. Go to Admin > Custom Schedules Functions > Global function > New > Paste the content from the attachment  configuration.txt and save it with a name.

3. Update the URL and technician key in the script. You can get the technician key under the profile in the top right corner. Refer to the attached screenshot.
Refer to the below link.


4. Go to Admin --> Custom Schedules Functions --> Custom Actions --> Paste the content from the attachment 3. 3. Close_change.txt and save it with a name.

5. Modify the global function name, report name, and status in the script. Refer to the attached screenshot.

6. Configure the custom schedule as in the attached screenshot.

                  New to ADSelfService Plus?

                    • Related Articles

                    • Close change requests using custom schedules.

                      This post describes the use of a python script to close change that are in a specific stage using Custom Schedules.   Use Case: There may be a scenario where number of old Change Requests that have gotten lost in the shuffle over the years. Most of ...
                    • How to implement dynamic request approval using FAFR and custom triggers - Deluge

                      This is a sample script written in Deluge to handle Conditional Approvals for Incident \ Service Requests, through Custom Triggers using Field and Form Rules.  One of the advantages of using this script that no modification in the script is required ...
                    • 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 ...
                    • Automating change stage transition based on task completion

                      PURPOSE: To automatically move to the next change stage when all tasks are closed, using task custom function and task custom trigger. The attached script triggers upon the closure of each task, verifying whether all tasks within the current stage ...
                    • Update a request based on certain values - Deluge

                      This post describes the use of a deluge script to update requests based on values given a global function, namely "request_properties".  This action can be performed using Custom Triggers. Refer to this link for Python ...