Script to set Request Technician as the Task Owner for all associated tasks.

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:
2. functions.py :  This package consists of all the functions that are used to handle the standard requirements of the customer.  Most repeated requirements are written as separate functions.  Depending on our usecase, we can include these functions in our script. 
3. configuration.json : This file maintains the configuration details of the installed server.  

Execution steps:    
1.  Extract the ZIP file under ..\ManageEngine\Servicedesk\integration\custom_scripts - folder.
2.  Edit the configuration.json and update the values.
3.  This Script can be configured as a custom trigger, which would get invoked right-away when a condition is met or you can configure the same script as a request custom menu, which would get invoked only when you invoke the menu manually from the Request Details Page. This is something that needs to be set depending on your requirement.
4.  For Custom Triggers:  Go to Admin > Custom Trigger > give a trigger name > execute script > py set_task_owner.py $COMPLETE_V3_JSON_FILE and set the criteria as "status=Resolved"
5.  For Request Custom Menu: Go to Admin > Request Custom Menu > give a menu name > Action Type : execute script > py set_task_owner.py $COMPLETE_V3_JSON_FILE. Invoke this script from Request Details page > Actions > Menu Name.


Custom Trigger:




Request Custom Menu:



                New to ADManager Plus?

                  New to ADSelfService Plus?

                    • Related Articles

                    • Script to set Request Technician as the Task Owner for all associated tasks - Deluge

                      Requirement:  Request technician should be set as the task owner for all available tasks. Use case: When the request is updated with the technician, all the associated task needs to be assigned to the same technician. Python ...
                    • 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 > ...
                    • 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: Goto Admin > Task Custom Functions > ...
                    • How to populate request details on associated tasks.

                      This sample script is used to update request field values into tasks associated with request templates The Request details are stored as a JSON Object in a file and its path is provided as input to the Script. This can be used in the application ...
                    • 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 ...