Changes between Version 3 and Version 4 of TracTicketsCustomFields


Ignore:
Timestamp:
05/10/20 17:24:31 (5 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracTicketsCustomFields

    v3 v4  
    44== Configuration
    55
    6 Configuring custom ticket fields is done in the [wiki:TracIni trac.ini] file. All field definitions should be under a section named `[ticket-custom]`.
     6Configuring custom ticket fields in the [TracIni#ticket-custom-section "[ticket-custom]"] section of trac.ini.
    77
    88The syntax of each field definition is:
     
    2020   * label: Descriptive label.
    2121   * value: Default value.
    22    * 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//).
    2324   * format: One of:
    2425     * `plain` for plain text
    25      * `wiki` to interpret the content as WikiFormatting
    26      * `reference` to treat the content as a queryable value (''since 1.0'')
    27      * `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
    2829 * '''checkbox''': A boolean value check box.
    2930   * label: Descriptive label.
     
    4344   * label: Descriptive label.
    4445   * value: Default text.
    45    * cols: Width in columns. //(Removed in 1.1.2)//
    4646   * rows: Height in lines.
    4747   * order: Sort order placement.
     48   * max_size: Maximum allowed size in characters (//Since 1.3.2//).
    4849   * format: Either `plain` for plain text or `wiki` to interpret the content as WikiFormatting.
    49  * '''time''': Date and time picker. (''Since 1.1.1.'')
     50 * '''time''': Date and time picker. (//Since 1.1.1//)
    5051   * label: Descriptive label.
    5152   * value: Default date.
     
    8485test_five = radio
    8586test_five.label = Radio buttons are fun
    86 test_five.options = uno|dos|tres|cuatro|cinco
     87test_five.options = |uno|dos|tres|cuatro|cinco
    8788test_five.value = dos
    8889
     
    109110}}}
    110111
    111 '''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`).
    112113
    113114=== Reports Involving Custom Fields
     
    143144Note in particular the `LEFT OUTER JOIN` statement here.
    144145
    145 Note that if your config file uses an '''uppercase''' name:
     146Note that option names in trac.ini are case-insensitive, so even if your option name includes uppercase characters:
    146147{{{#!ini
    147148[ticket-custom]
    148 
    149149Progress_Type = text
    150150}}}
    151 you would use '''lowercase''' in the SQL: `AND c.name = 'progress_type'`.
     151you must use '''lowercase''' in the SQL: `AND c.name = 'progress_type'`.
    152152
    153153----