close
Warning:
Can't synchronize with repository "(default)" (The repository directory has changed, you should resynchronize the repository with: trac-admin $ENV repository resync '(default)'). Look in the Trac log for more information.
- Timestamp:
-
2021-07-11T14:17:48-07:00 (3 years ago)
- Author:
-
trac
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v5
|
v6
|
|
4 | 4 | == Configuration |
5 | 5 | |
6 | | Configuring custom 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 |