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 ...
                    • 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 ...
                    • 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 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 ...
                    • Document for Request Custom Menu and Custom Triggers

                      Attached a PDF file explaining with screenshots on how Request Custom Menu & Custom Triggers work.