Script: Close associated changes when a request is closed

Script: Close associated changes when a request is closed

Use case: 

In many cases, the client never comes back to confirm the change. This means that the change remains opened indefinitely.
When the ticket is closed it is logical that the change to be closed. No one is going to close a ticket unless the changes have been made.

Steps:

1.Download the contents and paste it under \ManageEngine\ServiceDeskPlus MSP\integrations\Custom_scripts.
2. Configure custom trigger as in the attached screenshot.
3. In the configuration.json, configure the URL of the application and a technician key of the one who has the role SDAdmin and SDChangeManager.

Note: If any mandatory fields change will not be closed, hence ensure there are none configured in Admin->Change Closure Rules.

To setup python in the MSP server, please refer this link.


                  New to ADSelfService Plus?

                    • Related Articles

                    • How to close associated incident requests of change request automatically

                      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 Change Requests that have got closed and the associated incident is still in open ...
                    • 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 ...
                    • Risk Matrix for Change using Custom Module

                      Overview: A risk matrix helps in identifying risks based on how likely they are to happen and how serious their impact could be. This makes it easier to decide which risks need urgent attention and which ones can be watched over time. It helps manage ...
                    • Close all the associated requests when a change is closed

                      Requirement: When a change is closed, all the associated requests have to be closed. This includes both: Change initiated due to request Request caused by change Steps to configure: Goto Admin > Developer Space > Global function > New > Paste the ...
                    • 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 ...