Changes between Version 7 and Version 8 of TracTicketsCustomFields
- Timestamp:
- 10/05/2023 07:15:48 AM (14 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracTicketsCustomFields
v7 v8 4 4 == Configuration 5 5 6 Configur ingcustom ticket fields in the [TracIni#ticket-custom-section "[ticket-custom]"] section of trac.ini.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: … … 15 15 The example below should help to explain the syntax. 16 16 17 === Field Names 18 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 * cc 22 * changetime 23 * col 24 * comment 25 * component 26 * desc 27 * description 28 * format 29 * group 30 * groupdesc 31 * id 32 * keywords 33 * max 34 * milestone 35 * or 36 * order 37 * owner 38 * page 39 * priority 40 * report 41 * reporter 42 * resolution 43 * row 44 * severity 45 * status 46 * summary 47 * time 48 * type 49 * verbose 50 * version 51 17 52 === Available Field Types and Options 18 53 … … 22 57 * order: Sort order placement relative to other custom fields. 23 58 * max_size: Maximum allowed size in characters (//Since 1.3.2//). 24 * format: One of: 25 * `plain` for plain text 59 * format: One of: 60 * `plain` for plain text 26 61 * `wiki` for [WikiFormatting wiki formatted] content 27 62 * `reference` to treat the content as a queryable value 28 63 * `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`. 29 66 * '''checkbox''': A boolean value check box. 30 67 * label: Descriptive label. 31 68 * value: Default value, 0 or 1. 32 69 * order: Sort order placement. 70 * ticketlink_query: Query for linkifying ticket values. 33 71 * '''select''': Drop-down select box. Uses a list of values. 34 72 * label: Descriptive label. … … 36 74 * value: Default value (one of the values from options). 37 75 * order: Sort order placement. 76 * ticketlink_query: Query for linkifying ticket values. 38 77 * '''radio''': Radio buttons. Essentially the same as '''select'''. 39 78 * label: Descriptive label. … … 41 80 * value: Default value, one of the values from options. 42 81 * order: Sort order placement. 82 * ticketlink_query: Query for linkifying ticket values. 43 83 * '''textarea''': Multi-line text area. 44 84 * label: Descriptive label. … … 60 100 61 101 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` option 104 overrides [[TracIni#query-ticketlink_query-option|"[query] ticketlink_query"]], and the format is the same as 105 that option. When the `ticketlink_query` option 106 is not specified, `[query]` `ticketlink_query` is used to 107 linkify the field. 62 108 63 109 === Sample Configuration