Add and trigger predefined tasks to a change

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:
  1. Goto Admin > Developer Space > Global function > New > Paste the content from the attachment GF_4 - Configuration.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.

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




                    New to ADSelfService Plus?