Set Task Owner depending on the request field values

Set Task Owner depending on the request field values

Requirement:
Set Task Owner depending on the request field values.

Usecase:
When a task is triggered from a request, it should be assigned to a technician depending on the request field values.

Steps to follow:
  1. Goto Admin > Task Custom Functions > Global function > New > Paste the content from the attachment  Global function_5.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 --> Task Custom Functions. Create a new function.
    1. Refer to the attached script. (updateTask.txt.)
    2. Update the global function count in the script as per your instance.
  4. Configure Task custom trigger to get executed on every task being created with "Module" as "Request".



                  New to ADManager Plus?

                    New to ADSelfService Plus?

                      • Related Articles

                      • Set Task Owner depending on the request site

                        Requirement: Set Task Owner depending on the request site. Usecase: When a task is triggered from a request, it should be assigned to a technician depending on the request site. Steps to follow: Goto Admin > Task Custom Functions > Global function > ...
                      • Script to set Request Technician as the Task Owner for all associated tasks.

                        Use case: Request owner should be set as the task owner for all available tasks (or only open) from the request menu option (or trigger) Prerequisites: 1. Python Installation Steps ...
                      • Associate Checklist for a Request depending on Resource/UDF Values

                        Requirement: Script to associate checklists depending on UDF Additional field values/Resource Question values. Usecase: In few organizations. they have a separate template for "New Asset Request".  Each new asset needs a different set of checklists ...
                      • Dynamically set SLA based on field values

                        Requirement: SLA for service requests needs to be set depending on the category, subcategory and priority of the request. Usecase: The possibility to modify/set SLA depending on a request Field is not available in Service Request. Also, since SLA is ...
                      • Closed request with pending task

                        This report is used to get all completed request with the pending task.     To make any changes to a query, refer to the KB article below. https://pitstop.manageengine.com/support/manageengine/ShowHomePage.do#Solutions/dv/24000633501275 SELECT ...