コピーしたフィールドのデフォルト値の変更

  • リリースバージョン: Australia
  • 更新日 2026年03月12日
  • 所要時間:1分
  • 新しい部分プロジェクトでデフォルト値を変更します。

    始める前に

    必要なロール:admin

    このタスクについて

    実際の期間および実開始日と実終了日は、null 値にリセットされます。ステータスは [新規] に設定され、完了率は [0] に設定されます。アドミニストレーターは、UI ページを変更して、リセットするフィールドの決定や、デフォルト値の変更を行うことができます。

    手順

    1. 移動先 すべて > システム UI > UI ページ.
    2. copy_partial_project レコードを開きます。
    3. [処理スクリプト] フィールドにある場合は、次のスクリプトを使用します。
      /* 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";