Changes between Version 7 and Version 8 of TracTicketsCustomFields
- Timestamp:
- Nov 1, 2019, 9:17:56 PM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracTicketsCustomFields
v7 v8 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: … … 15 15 The example below should help to explain the syntax. 16 16 17 === Field Names18 A field name can only contain lowercase letters a-z, uppercase letters A-Z or digits 0-9, and must not start with a leading digit.19 20 The following field names are reserved and can not be used for custom fields:21 * cc22 * changetime23 * col24 * comment25 * component26 * desc27 * description28 * format29 * group30 * groupdesc31 * id32 * keywords33 * max34 * milestone35 * or36 * order37 * owner38 * page39 * priority40 * report41 * reporter42 * resolution43 * row44 * severity45 * status46 * summary47 * time48 * type49 * verbose50 * version51 52 17 === Available Field Types and Options 53 18 … … 55 20 * label: Descriptive label. 56 21 * value: Default value. 57 * 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//). 58 24 * format: One of: 59 25 * `plain` for plain text 60 * `wiki` to interpret the content as WikiFormatting61 * `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'')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 63 29 * '''checkbox''': A boolean value check box. 64 30 * label: Descriptive label. … … 78 44 * label: Descriptive label. 79 45 * value: Default text. 80 * cols: Width in columns. //(Removed in 1.1.2)//81 46 * rows: Height in lines. 82 47 * order: Sort order placement. 48 * max_size: Maximum allowed size in characters (//Since 1.3.2//). 83 49 * format: Either `plain` for plain text or `wiki` to interpret the content as WikiFormatting. 84 * '''time''': Date and time picker. ( ''Since 1.1.1.'')50 * '''time''': Date and time picker. (//Since 1.1.1//) 85 51 * label: Descriptive label. 86 52 * value: Default date. … … 119 85 test_five = radio 120 86 test_five.label = Radio buttons are fun 121 test_five.options = uno|dos|tres|cuatro|cinco87 test_five.options = |uno|dos|tres|cuatro|cinco 122 88 test_five.value = dos 123 89 … … 144 110 }}} 145 111 146 '''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`). 147 113 148 114 === Reports Involving Custom Fields … … 178 144 Note in particular the `LEFT OUTER JOIN` statement here. 179 145 180 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: 181 147 {{{#!ini 182 148 [ticket-custom] 183 184 149 Progress_Type = text 185 150 }}} 186 you woulduse '''lowercase''' in the SQL: `AND c.name = 'progress_type'`.151 you must use '''lowercase''' in the SQL: `AND c.name = 'progress_type'`. 187 152 188 153 ----