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 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 ...
                    • 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 ...
                    • 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 ...
                    • Script to Auto close Request when the status is Resolved for a particular number of days

                      For version 11 and above: -> In version 11, we only have the option to set the request Auto-close for a max of 10 days -> The below script will help you to extend the auto-closure time Execution steps: 1. Go to Reports--> New Query Report and run the ...