{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":39935,"path":"platform-administration/table-administration-and-data-management/r_PlannedTaskScripts.md","title":"Planned task scripts","bundle":null,"doc_type":null,"release":"australia","body":"\n# Planned task scripts\n\nSeveral business rules and one script include determines the dynamic calculation of crucial Planned Task fields.\n\n|Business Rule|Description|\n|-------------|-----------|\n|Set actual work start value|Sets the Actual Start Date of the planned task when State is set to the default work state.|\n|Set close data on inactive|Sets the close data of the planned task when task becomes inactive.|\n|Recalculate|Recalculates the planned task schedule fields when one of the schedule fields changes.|\n|Planned task global events|Raises global event for every insert or update of planned task record. For more information, see [Global events](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/build-workflows/r_GlobalEvents.md).|\n|Update parent actual effort|Rolls up actual effort from child task to parent task.|\n|Update parent effort|Rolls up planned effort from child task to parent task.|\n|Update parent percent complete|Rolls up percent complete from child task to parent task.|\n|Validate duration|Validates the value in the planned duration field is not 0 or negative.|\n|Validate percent complete|Validates the value in the percent complete field is between 0 and 100.|\n|Validate work end before work start|Validates that the actual end date is not earlier than the actual start date.|\n|Set top task|Sets top tasks to maintain hierarchy of tasks.|\n|Set top task on children|Sets top tasks on child tasks to maintain hierarchy of tasks.|\n\n**Parent Topic:**[Extending the Task table with Planned tasks](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-administration/table-administration-and-data-management/c_PlannedTask.md)\n\n"}}