Update Status in Dependent Tasks

Update Status in Dependent Tasks

Requirement:
Update dependent tasks to cancelled status when parent task is cancelled.

Steps to follow:
  1. Goto Admin > Developer Space > Global function > New > Paste the content from the attachment  Global function_4.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 > Task Custom Functions. Create a new function.
    1. Refer to the attached script. (updateStatusInDependentTasks.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 cancelled with "Module" as "Request".



                  New to ADSelfService Plus?

                    • Related Articles

                    • Update Dependent Tasks

                      Requirement: Closing the parent task should update the child task's status to "In Progress," assign the same owner as the parent task, and also notify the task owner. Steps to follow: Goto Admin > Developer Space > Global function > New > Paste the ...
                    • Update status using Python script in 11.0

                      Using a Python script via custom trigger, we can update the status invoking an API call. A short guide on setting up python is available here : https://pitstop.manageengine.com/portal/kb/articles/how-to-setup-python-on-the-server Find the attached ...
                    • Query to show project tasks status wise count (MSSQL & PGSQL)

                      Tested in build PGSQL (14300) and MSSQL (14306) PGSQL: SELECT projectdet.title AS "Project name", count(case when (taskstatus.statusid='1') THEN 1 ELSE NULL END) "Open Tasks", count(case when (taskstatus.statusid='6') THEN 6 ELSE NULL END) "In ...
                    • Python script to update request status

                      This article consists of a python script to update the request status based on a criteria set in Custom trigger. For installation and setup of PYTHON, please refer the below link, ...
                    • 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 ...