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:
- 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.)
- Update the task fields as per your requirement.
- Go to Admin > Developer Space > Request Custom Functions. Create a new function.
- Refer to the attached script. (addPredfinedTaskstoRequest.txt.)
- Update the global function count\API name in the custom function script as per your instance.
- Configure Request custom trigger to get executed on every request being created with a specific template.
New to ADSelfService Plus?
Related Articles
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 ...
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 : ...
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 ...
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 ...
Add tasks with dependencies for a change request created with a particular template
Requirement: Add tasks with dependencies for a change request created with a particular template. UseCase: Four Predefined tasks will be added to every change request created with "Maintenance" Template. Task Details: Scheduling Snapshots Linux ...