Changes between Version 3 and Version 4 of TracTicketsCustomFields
- Timestamp:
- 05/10/20 17:25:30 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracTicketsCustomFields
v3 v4 4 4 == Configuration 5 5 6 Configuring custom ticket fields i s done in the [wiki:TracIni trac.ini] file. All field definitions should be under a section named `[ticket-custom]`.6 Configuring custom ticket fields in the [TracIni#ticket-custom-section "[ticket-custom]"] section of trac.ini. 7 7 8 8 The syntax of each field definition is: … … 20 20 * label: Descriptive label. 21 21 * value: Default value. 22 * order: Sort order placement; this determines relative placement in forms with respect to other custom fields. 22 * order: Sort order placement relative to other custom fields. 23 * max_size: Maximum allowed size in characters (//Since 1.3.2//). 23 24 * format: One of: 24 25 * `plain` for plain text 25 * `wiki` to interpret the content as WikiFormatting26 * `reference` to treat the content as a queryable value (''since 1.0'')27 * `list` to interpret the content as a list of queryable values, separated by whitespace (''since 1.0'')26 * `wiki` for [WikiFormatting wiki formatted] content 27 * `reference` to treat the content as a queryable value 28 * `list` to interpret the content as a list of queryable values, separated by whitespace 28 29 * '''checkbox''': A boolean value check box. 29 30 * label: Descriptive label. … … 43 44 * label: Descriptive label. 44 45 * value: Default text. 45 * cols: Width in columns. //(Removed in 1.1.2)//46 46 * rows: Height in lines. 47 47 * order: Sort order placement. 48 * max_size: Maximum allowed size in characters (//Since 1.3.2//). 48 49 * format: Either `plain` for plain text or `wiki` to interpret the content as WikiFormatting. 49 * '''time''': Date and time picker. ( ''Since 1.1.1.'')50 * '''time''': Date and time picker. (//Since 1.1.1//) 50 51 * label: Descriptive label. 51 52 * value: Default date. … … 84 85 test_five = radio 85 86 test_five.label = Radio buttons are fun 86 test_five.options = uno|dos|tres|cuatro|cinco87 test_five.options = |uno|dos|tres|cuatro|cinco 87 88 test_five.value = dos 88 89 … … 109 110 }}} 110 111 111 '''Note''': To make a `select` type field optional, specify a leading `|` in the `fieldname.options` option.112 '''Note''': To make a `select` type field optional, specify a leading `|` in `fieldname.options` (e.g. `test_five`). 112 113 113 114 === Reports Involving Custom Fields … … 143 144 Note in particular the `LEFT OUTER JOIN` statement here. 144 145 145 Note that if your config file uses an '''uppercase''' name:146 Note that option names in trac.ini are case-insensitive, so even if your option name includes uppercase characters: 146 147 {{{#!ini 147 148 [ticket-custom] 148 149 149 Progress_Type = text 150 150 }}} 151 you woulduse '''lowercase''' in the SQL: `AND c.name = 'progress_type'`.151 you must use '''lowercase''' in the SQL: `AND c.name = 'progress_type'`. 152 152 153 153 ----