RedmineCustomFields » History » Version 25
Go MAEDA, 2017-09-09 03:57
Added the heading for "Link values"
1 | 13 | Jim Kovacs | h1. Custom fields |
---|---|---|---|
2 | 1 | Jean-Philippe Lang | |
3 | 4 | Mischa The Evil | {{>toc}} |
4 | 1 | Jean-Philippe Lang | |
5 | 4 | Mischa The Evil | Custom fields allow you to add additional information to several types of data used in Redmine. See '[[RedmineCustomFields#Custom-field-types|custom field types]]' for all types of data which come with support for custom fields. |
6 | Each custom field can be defined to be of a [[RedmineCustomFields#Custom-field-supporting-data-types|certain type]]. |
||
7 | |||
8 | h2. Custom field types |
||
9 | |||
10 | 24 | Go MAEDA | h3. Format |
11 | |||
12 | A custom field can be of one the following types: |
||
13 | 1 | Jean-Philippe Lang | * *Boolean*: checkbox |
14 | 21 | @ go2null | * *Date*: date |
15 | * *Float*: floating point number |
||
16 | * *Integer*: positive or negative number |
||
17 | * *Link*: URL |
||
18 | 1 | Jean-Philippe Lang | * *List*: drop down list |
19 | 21 | @ go2null | * *Long Text*: resizeable multiple lines of text (supports rich text formatting as of 2.50) |
20 | * *Text*: multiple lines text (supports rich text formatting as of 2.50) |
||
21 | 1 | Jean-Philippe Lang | * *User* custom field format that can be used to reference a project member |
22 | * *Version* custom field format that can be used to reference version |
||
23 | |||
24 | 24 | Go MAEDA | h3. Validation |
25 | |||
26 | 1 | Jean-Philippe Lang | Some validations can be defined for each custom field: |
27 | * *Min - max length*: minimum and maximum length for the field (0 means that there is no restriction) |
||
28 | * *Regular Expression*: a regular expression can be used to validate the field content. Examples: |
||
29 | ## _4 capital letters followed by one or several digits_ |
||
30 | <pre>^\[A-Z]{4}\d+$</pre> |
||
31 | ## _characters only, no digits_ |
||
32 | <pre>^[^0-9]*$</pre> |
||
33 | 21 | @ go2null | * A full list of regular expressions can be found in the Ruby Users Guide. |
34 | 1 | Jean-Philippe Lang | |
35 | 24 | Go MAEDA | h3. Values |
36 | |||
37 | 21 | @ go2null | Some field support multiple values and default values. |
38 | 22 | Anonymous | * *Multiple values*: while enabled, more than one item may be selected. |
39 | 1 | Jean-Philippe Lang | * *Possible values*: possible values for the "List" fields. One line for each value. |
40 | 21 | @ go2null | * *Default value*: default value to apply if none selected. |
41 | 1 | Jean-Philippe Lang | |
42 | 24 | Go MAEDA | h3. Text formatting |
43 | |||
44 | 21 | @ go2null | Some fields support text formatting. |
45 | * *Text formatting*: whether to wikify the text. If enabled, then _locks_ the *Link values to URL* field. |
||
46 | 25 | Go MAEDA | |
47 | |||
48 | h3. Link values |
||
49 | |||
50 | Link values can be defined for link format custom fields. |
||
51 | |||
52 | 21 | @ go2null | * *Link values to URL*: creates a URL using the following variables. |
53 | ** @%value%@ => the custom field value |
||
54 | ** @%id%@ => id of the customized object |
||
55 | ** @%project_id%@ => id of the project of the customized object if defined |
||
56 | ** @%project_identifier%@ => identifier of the project of the customized object if defined |
||
57 | 22 | Anonymous | ** @%m1%, %m2%...@ => capture groups matches of the custom field regexp if defined |
58 | 1 | Jean-Philippe Lang | |
59 | 24 | Go MAEDA | h3. Input field styling |
60 | |||
61 | 22 | Anonymous | (2.5.2+) Some fields may be displayed as radio buttons or checkboxes, with slightly different behaviour based on the selected "Format": |
62 | * *Boolean*: checkbox (enabled/disabled) or radio buttons (null/yes/no) |
||
63 | * *List*, *User* and *Version*: |
||
64 | ** checkboxes (if *Multiple values* is enabled) |
||
65 | 21 | @ go2null | ** radio buttons (if *Multiple values* is disabled) |
66 | 1 | Jean-Philippe Lang | |
67 | h2. Custom field supporting data types |
||
68 | |||
69 | 4 | Mischa The Evil | h3. Fields for Issues |
70 | |||
71 | 10 | Mischa The Evil | Data in issue custom fields can be used and/or will be displayed in [[RedmineIssues|issues]], [[RedmineIssueList|issue lists]], [[RedmineIssueList#Custom-queries|custom queries]] and the [[RedmineTimelogReport|Timelog report]]. |
72 | 5 | Mischa The Evil | |
73 | 11 | Mischa The Evil | * *Trackers*: TODO |
74 | 4 | Mischa The Evil | * *Required*: field which is required in order to create/save an issue |
75 | * *For all projects*: if checked, this field is used for the issues of all the projects. If unchecked, each project can choose whether or not to use the field for its issues (see [[RedmineProjectSettings|Project settings]]). |
||
76 | 11 | Mischa The Evil | * *Used as a filter*: TODO |
77 | 5 | Mischa The Evil | * *Searchable*: field which is searchable using the Redmine [[RedmineSearch|search function]] |
78 | 1 | Jean-Philippe Lang | |
79 | 4 | Mischa The Evil | h3. Fields for Spent time entries |
80 | 1 | Jean-Philippe Lang | |
81 | 10 | Mischa The Evil | Data in spent time entry custom fields can be used and/or will be displayed in the [[RedmineTimelogReport|Timelog report]]. |
82 | 5 | Mischa The Evil | |
83 | 4 | Mischa The Evil | * *Required*: field which is required in order to create/save a spent time entry |
84 | 1 | Jean-Philippe Lang | |
85 | 4 | Mischa The Evil | h3. Fields for Projects |
86 | 1 | Jean-Philippe Lang | |
87 | 10 | Mischa The Evil | Data in project custom fields can be used and/or will be displayed in the [[RedmineProjectOverview|Project overview]]. |
88 | 5 | Mischa The Evil | |
89 | 1 | Jean-Philippe Lang | * *Required*: field which is required in order to create/save a project |
90 | 5 | Mischa The Evil | * *Searchable*: field which is searchable using the Redmine [[RedmineSearch|search function]] |
91 | 1 | Jean-Philippe Lang | |
92 | 4 | Mischa The Evil | h3. Fields for Versions |
93 | 1 | Jean-Philippe Lang | |
94 | 10 | Mischa The Evil | Data in version custom fields can be used and/or will be displayed in the [[RedmineRoadmap|Roadmap]] and the [[RedmineVersion|Version overview]]. |
95 | 6 | Mischa The Evil | |
96 | 4 | Mischa The Evil | * *Required*: field which is required in order to create/save a version |
97 | |||
98 | h3. Fields for Users |
||
99 | |||
100 | 10 | Mischa The Evil | Data in user custom fields can be used and/or will be displayed in the [[RedmineUserProfiles|user profiles]]. |
101 | 6 | Mischa The Evil | |
102 | 1 | Jean-Philippe Lang | * *Required*: field which is required in order to create/save a user |
103 | 19 | Etienne Massip | * *Visible*: field which is displayed in the [[RedmineUserProfiles|user profile]] |
104 | 6 | Mischa The Evil | * *Editable*: field which is editable by the [[RedmineAccounts|Redmine user]] owning the user account |
105 | 4 | Mischa The Evil | |
106 | h3. Fields for Groups |
||
107 | 1 | Jean-Philippe Lang | |
108 | 9 | Mischa The Evil | *Note*: group custom fields are not (yet) used in the Redmine core, though other plugins or themes _can/may_ use them. No setting here has any effect on any other parts of Redmine for the time being. |
109 | 4 | Mischa The Evil | |
110 | 1 | Jean-Philippe Lang | h3. Fields for Activities (time tracking) |
111 | |||
112 | 23 | Mischa The Evil | Data in time tracking activity custom fields can be used and/or will be displayed[1] in the [[RedmineTimelogReport|Timelog report]] and the [[RedmineProjectSettings#Activities-time-tracking|Project settings]]. See also #4077 for some details about this nifty feature. |
113 | 7 | Mischa The Evil | |
114 | 4 | Mischa The Evil | * *Required*: field which is required in order to create/save an activity |
115 | 1 | Jean-Philippe Lang | |
116 | h3. Fields for Issue priorities |
||
117 | 4 | Mischa The Evil | |
118 | 9 | Mischa The Evil | *Note*: issue priority custom fields are not (yet) used in the Redmine core, though other plugins or themes _can/may_ use them. No setting here has any effect on any other parts of Redmine for the time being. |
119 | 8 | Felix Schäfer | |
120 | 7 | Mischa The Evil | h3. Fields for Document categories |
121 | 4 | Mischa The Evil | |
122 | 1 | Jean-Philippe Lang | *Note*: document category custom fields are not (yet) used in the Redmine core, though other plugins or themes _can/may_ use them. No setting here has any effect on any other parts of Redmine for the time being. |
123 | 23 | Mischa The Evil | |
124 | fn1. there are some exceptions, see #19121#note-1. |