Add and trigger predefined tasks to a request

Add and trigger predefined tasks to a request

Requirement:
Add a set of tasks to a request 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. Update the task fields as per your requirement.
  4. Go to Admin > Developer Space > Request Custom Functions. Create a new function.
    1. Refer to the attached script. (addPredfinedTaskstoRequest.txt.)
      1. Update the global function count\API name in the custom function script as per your instance.
    1. Configure Request custom trigger to get executed on every request being created with a specific template.




                    New to ADSelfService Plus?

                      • Related Articles

                      • Add request API Using Postman

                        You need to send the TECHNICIAN_KEY and format in Params and the data in Body. Also, you have to encode the body and send it. Please refer to the below for your reference which is sent using postman. Attached is the SAMPLE JSON file Example : ...
                      • Deluge Script to show request attributes in Task Subject / Description from builds: 10600 and 14306

                        Requirement: To show the request field values such as Request Type, Status etc., or the additional field values in the Task subject/description. Use case: When a task is triggered from a request, it should contain the request details (configured) in ...
                      • Scripts to cancel tasks when the request status is set to cancel

                        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 ...
                      • Trigger a set of tasks

                        Requirement: Auto Trigger a set of task associated to a request depending on the date configured in the request additional field. Steps to follow: Goto Reports > New Query Report > execute the query and save it with a name. PGSQL: SELECT ...
                      • How to automatically create multiple tasks in a change request with a configurable JSON file.

                        Note:  Attached script will not work beyond 11138 SDP Version. ​ This is a sample Python script  to automatically  create multiple tasks within a change request  with a configurable JSON file. This is achieved  using an API call to create a task in ...