Change default values of copied fields

  • Freigeben Version: Australia
  • Aktualisiert 12. März 2026
  • 1 Minute Lesedauer
  • Change the default values of in the new partial project.

    Vorbereitungen

    Role required: admin

    Warum und wann dieser Vorgang ausgeführt wird

    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.

    Prozedur

    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";