Script to automatically close change that have passed their scheduled time.

Script to automatically close change that have passed their scheduled time.

Please follow the below steps.

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. Goto 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 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, status in the script. Refer to the attached screenshot.

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

                  New to ADManager Plus?

                    New to ADSelfService Plus?

                      • Related Articles

                      • 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 ...
                      • Auto Populate Scheduled Start Time and End Time in Change Request

                        We can now auto-populate the Scheduled Start Time and End Time in a change request using FAFR. Under Admin>Change Template>Field and Form Rules, you can use the below scrips Scheduled Start Time var x=$CS.getValue("SCHEDULEDSTARTTIME"); if ( x === ...
                      • 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 ...
                      • 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 set Change Approver based on the Requester's Reporting to

                        Tested in build 14306 Requirement: When a change is created, the Change Approver role is to be filled automatically with the Change Requester's "Reporting to" user. Steps: >> Attached are the contents for Global and Change Custom Functions. >> ...