Changes between Version 8 and Version 9 of TracTicketsCustomFields
- Timestamp:
- Sep 10, 2020, 8:03:21 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracTicketsCustomFields
v8 v9 4 4 == Configuration 5 5 6 Configur ing custom ticket fields is done in the [wiki:TracIni trac.ini] file. All field definitions should be under a section named `[ticket-custom]`.6 Configure 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: … … 55 55 * label: Descriptive label. 56 56 * value: Default value. 57 * order: Sort order placement; this determines relative placement in forms with respect to other custom fields. 58 * format: One of: 59 * `plain` for plain text 60 * `wiki` to interpret the content as WikiFormatting 61 * `reference` to treat the content as a queryable value (''since 1.0'') 62 * `list` to interpret the content as a list of queryable values, separated by whitespace (''since 1.0'') 57 * order: Sort order placement relative to other custom fields. 58 * max_size: Maximum allowed size in characters (//Since 1.3.2//). 59 * format: One of: 60 * `plain` for plain text 61 * `wiki` for [WikiFormatting wiki formatted] content 62 * `reference` to treat the content as a queryable value 63 * `list` to interpret the content as a list of queryable values, separated by whitespace 63 64 * '''checkbox''': A boolean value check box. 64 65 * label: Descriptive label. … … 78 79 * label: Descriptive label. 79 80 * value: Default text. 80 * cols: Width in columns. //(Removed in 1.1.2)//81 81 * rows: Height in lines. 82 82 * order: Sort order placement. 83 * max_size: Maximum allowed size in characters (//Since 1.3.2//). 83 84 * format: Either `plain` for plain text or `wiki` to interpret the content as WikiFormatting. 84 * '''time''': Date and time picker. ( ''Since 1.1.1.'')85 * '''time''': Date and time picker. (//Since 1.1.1//) 85 86 * label: Descriptive label. 86 87 * value: Default date. … … 119 120 test_five = radio 120 121 test_five.label = Radio buttons are fun 121 test_five.options = uno|dos|tres|cuatro|cinco122 test_five.options = |uno|dos|tres|cuatro|cinco 122 123 test_five.value = dos 123 124 … … 144 145 }}} 145 146 146 '''Note''': To make a `select` type field optional, specify a leading `|` in the `fieldname.options` option.147 '''Note''': To make a `select` type field optional, specify a leading `|` in `fieldname.options` (e.g. `test_five`). 147 148 148 149 === Reports Involving Custom Fields … … 178 179 Note in particular the `LEFT OUTER JOIN` statement here. 179 180 180 Note that if your config file uses an '''uppercase''' name:181 Note that option names in trac.ini are case-insensitive, so even if your option name includes uppercase characters: 181 182 {{{#!ini 182 183 [ticket-custom] 183 184 184 Progress_Type = text 185 185 }}} 186 you woulduse '''lowercase''' in the SQL: `AND c.name = 'progress_type'`.186 you must use '''lowercase''' in the SQL: `AND c.name = 'progress_type'`. 187 187 188 188 ----