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 content from the attachment Global function_4.txt and save it with a name.
- Update the URL and integration key in the script.
- You can get the integration key under Admin > Integrations > Integration Key > New
- Please use an integration key with admin privilege, as there wont be any role related permission issues.

- Update the integration key in the global function.

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

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

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

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 ...
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 all linked requests when a parent request is closed - Deluge
Requirement: All the linked requests need to be closed when the parent request is closed. Refer to this link for Python equivalent: https://pitstop.manageengine.com/portal/en/kb/articles/how-to-close-linked-requests-when-a-parent-request-is-closed ...
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 ...