Close all the associated requests when a change is closed

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:
  1. Change initiated due to request
  2. Request caused by change

Steps to configure:
  1. Goto Admin > Developer Space > Global function > New > Paste the content from the attachment  Global function_4.txt  and save it with a name.
  2. Update the URL and integration key in the script. 
    1. You can get the integration key under Admin > Integrations > Integration Key > New
    2. Please use an integration key with admin privilege, as there wont be any role related permission issues. 

    3. Update the integration key in the global function.



Change initiated due to request:
Steps to configure:
  1. Go to Admin > Developer Space > Change Custom Functions. Create a new function. Paste the content of "close_request_change_initiated_due_request.txt".
  2. Update the global function count/api name in the custom function.

  3. Configure a custom trigger to invoke the custom function, every time a change is closed.



    Request caused by Change:

    Steps to configure:
    1. Go to Admin > Developer Space > Change Custom Functions. Create a new function. Paste the content of "Close_Request_caused_by_Change.txt".
    2. Update the global function count/api name in the custom function.
    3. Configure a custom trigger to invoke the custom function, every time a change is closed.



                      New to ADManager Plus?

                        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 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 ...
                          • Close all associated tasks when a request is closed

                            Requirement: When a request is closed, it is necessary to close all of its related tasks. Usecase: In an organizational context, a request can involve multiple technicians, resulting in its segmentation into distinct tasks. When the request is marked ...
                          • How to close linked requests when a parent request is closed.

                            This post describes the use of a python script to close all the linked request when a parent request is closed using custom triggers. Use Case: We get tickets which are getting reported for the same issue but different end-users so that once we ...
                          • Close requests with pending approval for more than 10 days

                            Requirement:  Close older requests with pending approvals. UseCase:  Close all requests for which approvals have been sent but no action has been taken in more than 10 days. Please follow the below steps.  Goto Reports > New Query Report > execute ...