Add and trigger predefined tasks to a change
Requirement:
Add a set of tasks to a change and trigger them all at once.
Steps to configure:
- Goto Admin > Developer Space > Global function > New > Paste the content from the attachment GF_4 - Configuration.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.

- Go to Admin > Developer Space > Global Functions. Create a new function.
- Refer to the attached script. (PredefinedTasks.txt.)
- Modify the task fields according to your needs. You can either specify all the task details or simply provide the task template ID
- Go to Admin > Developer Space > Change Custom Functions. Create a new function.
- Refer to the attached script. (addPredfinedTaskstoChange.txt.)
- Update the global function count or the API name in the custom function script as per your instance.
- Configure Change custom trigger to get executed on every change being created with a specific template.
New to ADSelfService Plus?