How to add custom fields to Maniphest.
Maniphest provides some support for adding new fields to tasks, like an "cost" field, a "milestone" field, etc.
If you don't need complicated display controls or sophisticated validation, you can add simple fields. These allow you to attach things like strings, numbers, and dropdown menus to the task template.
Customize Maniphest fields by setting maniphest.custom-field-definitions in your configuration. For example, suppose you want to add "Estimated Hours" and "Actual Hours" fields. To do this, set your configuration like this:
'maniphest.custom-fields' => array( 'mycompany:estimated-hours' => array( 'name' => 'Estimated Hours', 'type' => 'int', 'caption' => 'Estimated number of hours this will take.', 'required' => true, ), 'mycompany:actual-hours' => array( 'name' => 'Actual Hours', 'type' => 'int', ), )
Each array key must be unique, and is used to organize the internal storage of the field. These options are available: