Changes between Version 1 and Version 2 of TracTicketsCustomFields
- Timestamp:
- Jul 30, 2021, 7:48:41 AM (11 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracTicketsCustomFields
v1 v2 4 4 == Configuration 5 5 6 Configur ecustom ticket fields in the [TracIni#ticket-custom-section "[ticket-custom]"] section of trac.ini.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 … … 57 22 * order: Sort order placement relative to other custom fields. 58 23 * max_size: Maximum allowed size in characters (//Since 1.3.2//). 59 * format: One of: 60 * `plain` for plain text 24 * format: One of: 25 * `plain` for plain text 61 26 * `wiki` for [WikiFormatting wiki formatted] content 62 27 * `reference` to treat the content as a queryable value 63 28 * `list` to interpret the content as a list of queryable values, separated by whitespace 64 * ticketlink_query: Query for linkifying ticket values.65 Not applicable for format `plain` and `wiki`.66 29 * '''checkbox''': A boolean value check box. 67 30 * label: Descriptive label. 68 31 * value: Default value, 0 or 1. 69 32 * order: Sort order placement. 70 * ticketlink_query: Query for linkifying ticket values.71 33 * '''select''': Drop-down select box. Uses a list of values. 72 34 * label: Descriptive label. … … 74 36 * value: Default value (one of the values from options). 75 37 * order: Sort order placement. 76 * ticketlink_query: Query for linkifying ticket values.77 38 * '''radio''': Radio buttons. Essentially the same as '''select'''. 78 39 * label: Descriptive label. … … 80 41 * value: Default value, one of the values from options. 81 42 * order: Sort order placement. 82 * ticketlink_query: Query for linkifying ticket values.83 43 * '''textarea''': Multi-line text area. 84 44 * label: Descriptive label. … … 100 60 101 61 Macros will be expanded when rendering `textarea` fields with format `wiki`, but not when rendering `text` fields with format `wiki`. 102 103 For applicable fields, the `ticketlink_query` option104 overrides [[TracIni#query-ticketlink_query-option|"[query] ticketlink_query"]], and the format is the same as105 that option. When the `ticketlink_query` option106 is not specified, `[query]` `ticketlink_query` is used to107 linkify the field.108 62 109 63 === Sample Configuration