---
sourceDocument: Xanadu ServiceNow AI Platform Administration
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/platform-administration

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu ServiceNow AI Platform Administration

ft:clusterId :

    - platadm

bundleId :

    - platadm

workflow :

    - Platform


---

# Planned task scripts

# Planned task scripts {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

Several business rules and one script include determines the dynamic calculation of
crucial Planned Task fields.
{#r_PlannedTaskScripts__table_nfq_wh3_dp__entry__2}

| Business Rule | Description |
|-|-|
| Set actual work start value | Sets the Actual Start Date of the planned task when State is set to the default work state. |
| Set close data on inactive | Sets the close data of the planned task when task becomes inactive. |
| Recalculate | Recalculates the planned task schedule fields when one of the schedule fields changes. |
| Planned task global events | Raises global event for every insert or update of planned task record. For more information, see [Global events](https://www.servicenow.com/docs/access?context=r_GlobalEvents&version=xanadu&pubname=xanadu-build-workflows&ft:locale=en-US). |
| Update parent actual effort | Rolls up actual effort from child task to parent task. |
| Update parent effort | Rolls up planned effort from child task to parent task. |
| Update parent percent complete | Rolls up percent complete from child task to parent task. |
| Validate duration | Validates the value in the planned duration field is not 0 or negative. |
| Validate percent complete | Validates the value in the percent complete field is between 0 and 100. |
| Validate work end before work start | Validates that the actual end date is not earlier than the actual start date. |
| Set top task | Sets top tasks to maintain hierarchy of tasks. |
| Set top task on children | Sets top tasks on child tasks to maintain hierarchy of tasks. |
[Table 1. Planned Task Scripts]

{#r_PlannedTaskScripts__table_nfq_wh3_dp}

