Change default values of copied fields
task brazil Updated Sep 10, 2026 1 min read t_ChangeDefaultValCopiedProjTasks.md
Change the default values of in the new partial project.
Before you begin
Role required: admin
About this task
Actual duration and the actual start and end dates are reset to null values. The state is set to New and percent complete is set to 0. Administrators can modify UI pages to determine which fields are reset or to change the default values.
Procedure
-
Navigate to All > System UI > UI Pages.
-
Open the copy_partial_project record.
-
Use the following script if in the Processing script field:
JavaScript/* resetFields is the array containing the list of names of fields that need to be erased from the copied project tasks * defaultFields is the array containing the key, value pairs of field names and values that need to be set on the copied tasks */var resetFields =new Array();var defaultFields ={}; resetFields.push("work_start","work_end","work_duration"); defaultFields["state"]="-5"; defaultFields["percent_complete"]="0";
Parent Topic:Copy an existing task or project
Related topics
52 lines · 2.1 KB
---
title: Change default values of copied fields
description: Change the default values of in the new partial project.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/it-business-management/project-management/t\_ChangeDefaultValCopiedProjTasks.html
release: brazil
product: Project Management
classification: project-management
topic_type: task
last_updated: "2026-09-10"
reading_time_minutes: 1
breadcrumb: [Copy an existing task or project, Create a project task from a project, Starting a project, Using Project Management, Project Management, Project Portfolio Management, Strategic Portfolio Management]
---
# Change default values of copied fields
Change the default values of in the new partial project.
## Before you begin
Role required: admin
## About this task
Actual duration and the actual start and end dates are reset to null values. The state is set to **New** and percent complete is set to **0**. Administrators can modify UI pages to determine which fields are reset or to change the default values.
## Procedure
1. Navigate to **All** > **System UI** > **UI Pages**.
2. Open the copy\_partial\_project record.
3. Use the following script if in the **Processing script** field:
```
/* resetFields is the array containing the list of names of fields that need to be erased from the copied project tasks
* defaultFields is the array containing the key, value pairs of field names and values that need to be set on the copied tasks
*/var resetFields =new Array();var defaultFields ={};
resetFields.push("work_start","work_end","work_duration");
defaultFields["state"]="-5";
defaultFields["percent_complete"]="0";
```
**Parent Topic:**[Copy an existing task or project](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/it-business-management/project-management/t_CopyExistingTaskorProject.md)
**Related topics**
[Copy an existing task or project](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/it-business-management/project-management/t_CopyExistingTaskorProject.md)
| title | Change default values of copied fields |
| description | Change the default values of in the new partial project. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/it-business-management/project-management/t\_ChangeDefaultValCopiedProjTasks.html |
| release | brazil |
| product | Project Management |
| classification | project-management |
| topic_type | task |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | Copy an existing task or projectCreate a project task from a projectStarting a projectUsing Project ManagementProject ManagementProject Portfolio ManagementStrategic Portfolio Management |