Differential D20691 Diff 49350 src/applications/maniphest/config/PhabricatorManiphestConfigOptions.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/config/PhabricatorManiphestConfigOptions.php
Show First 20 Lines • Show All 445 Lines • ▼ Show 20 Lines | - `disabled` //Optional bool.// Set to true to prevent users from choosing | ||||
affected, and can be batch edited to a different priority or left to | affected, and can be batch edited to a different priority or left to | ||||
eventually die out. | eventually die out. | ||||
You can choose the default priority for newly created tasks with | You can choose the default priority for newly created tasks with | ||||
"maniphest.default-priority". | "maniphest.default-priority". | ||||
EOTEXT | EOTEXT | ||||
)); | )); | ||||
$fields_description = $this->deformat(pht(<<<EOTEXT | |||||
List of custom fields for Maniphest tasks. | |||||
For details on adding custom fields to Maniphest, see [[ %s | %s ]] in the | |||||
documentation. | |||||
EOTEXT | |||||
, | |||||
PhabricatorEnv::getDoclink('Configuring Custom Fields'), | |||||
pht('Configuring Custom Fields'))); | |||||
return array( | return array( | ||||
$this->newOption('maniphest.custom-field-definitions', 'wild', array()) | $this->newOption('maniphest.custom-field-definitions', 'wild', array()) | ||||
->setSummary(pht('Custom Maniphest fields.')) | ->setSummary(pht('Custom Maniphest fields.')) | ||||
->setDescription( | ->setDescription($fields_description) | ||||
pht( | |||||
'Array of custom fields for Maniphest tasks. For details on '. | |||||
'adding custom fields to Maniphest, see "Configuring Custom '. | |||||
'Fields" in the documentation.')) | |||||
->addExample($fields_json, pht('Valid setting')), | ->addExample($fields_json, pht('Valid setting')), | ||||
$this->newOption('maniphest.fields', $custom_field_type, $default_fields) | $this->newOption('maniphest.fields', $custom_field_type, $default_fields) | ||||
->setCustomData(id(new ManiphestTask())->getCustomFieldBaseClass()) | ->setCustomData(id(new ManiphestTask())->getCustomFieldBaseClass()) | ||||
->setDescription(pht('Select and reorder task fields.')), | ->setDescription(pht('Select and reorder task fields.')), | ||||
$this->newOption( | $this->newOption( | ||||
'maniphest.priorities', | 'maniphest.priorities', | ||||
$priority_type, | $priority_type, | ||||
$priority_defaults) | $priority_defaults) | ||||
Show All 28 Lines |