Differential D17004 Diff 41390 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 291 Lines • ▼ Show 20 Lines | To activate points, set this value to a map with these keys: | ||||
| - `action` //Optional string.// Label for the action which changes points | - `action` //Optional string.// Label for the action which changes points | ||||
| in Maniphest, like "Change Estimate". If omitted, the action will | in Maniphest, like "Change Estimate". If omitted, the action will | ||||
| be called "Change Points". | be called "Change Points". | ||||
| See the example below for a starting point. | See the example below for a starting point. | ||||
| EOTEXT | EOTEXT | ||||
| )); | )); | ||||
| $custom_fields_href = PhabricatorEnv::getDoclink( | |||||
| '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( | ||||
| pht( | pht( | ||||
| 'Array of custom fields for Maniphest tasks. For details on '. | 'Array of custom fields for Maniphest tasks. For details on '. | ||||
| 'adding custom fields to Maniphest, see "Configuring Custom '. | 'adding custom fields to Maniphest, see **[[ %s | Configuring '. | ||||
| 'Fields" in the documentation.')) | 'Custom Fields ]]** in the documentation.', | ||||
| $custom_fields_href)) | |||||
| ->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 20 Lines • Show All 52 Lines • Show Last 20 Lines | |||||