Scripts to automatically cancel request tasks when the request status is set to cancelled (when the task closure rule is enabled)

Scripts to automatically cancel request tasks when the request status is set to cancelled (when the task closure rule is enabled)

NOTE: In the attached script Owner and Group value is hardcoded, so the script works only when the group and owner name are configured in task closure rules(valid technician name and group name). If technician and group doesn't exist inside the task the script will not work.

Applicable above 14000 builds:

Steps to configure:

1.  Download the attached scripts and extract it.  

2. Go to Admin >> Developer Space >> Global Function >> Copy & Paste the attached GF_Content.txt  as shown in GFConfiguration.txt and save it with a name. (Refer to the attachments for the same  (Refer GF configuration.png). use same names as mentioned.) Update the URL(application URL) and technician key as per your instance.

For creating the Integration key/Technician key refer to this KB link: https://pitstop.manageengine.com/portal/en/kb/articles/creating-integration-key

3.  Go to Admin >> Developer Space >> Request Custom Function ->  Copy & paste CancelTasks.txt and save it with a name.(refer request-customfunction.png and provide all details as shown)
 
4. Go to Admin >> Automation >> Custom Triggers >> Request Custom trigger >> 
Configure the custom functions in a custom trigger. Refer to the screenshot below.


You don't have to shut down and start the application while doing this.

                  New to ADSelfService Plus?