Commit 79bc536a authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 419660: New custom fields not listed in "3.10. Custom Fields" - Patch by Sam…

Bug 419660: New custom fields not listed in "3.10. Custom Fields" - Patch by Sam Folk-Williams <sam.folkwilliams@gmail.com> r=LpSolit
parent 4260d412
...@@ -2379,20 +2379,34 @@ ReadOnly: ENTRY, NA/NA, CANEDIT ...@@ -2379,20 +2379,34 @@ ReadOnly: ENTRY, NA/NA, CANEDIT
<title>Custom Fields</title> <title>Custom Fields</title>
<para> <para>
One of the most requested features was the ability to add your own custom The release of Bugzilla 3.0 added the ability to create Custom Fields.
fields to bugs, based on your needs. With the release of Bugzilla 3.0, this Custom Fields are treated like any other field - they can be set in bugs
dream finally comes true. Administrators can manage these fields using the and used for search queries. Administrators should keep in mind that
<quote>Custom Fields</quote> link in the footer of pages. The first thing adding too many fields can make the user interface more complicated and
they will see is the list of existing custom fields (which is empty by default). harder to use. Custom Fields should be added only when necessary and with
careful consideration.
</para>
<tip>
<para>
Before adding a Custom Field, make sure that Bugzilla can not already
do the desired behavior. Many Bugzilla options are not enabled by
default, and many times Administrators find that simply enabling
certain options that already exist is sufficient.
</para>
</tip>
<para>
Administrators can manage Custom Fields using the
<quote>Custom Fields</quote> link on the Administration page. The Custom
Fields administration page displays a list of Custom Fields, if any exist,
and a link to "Add a new custom field".
</para> </para>
<section id="add-custom-fields"> <section id="add-custom-fields">
<title>Adding Custom Fields</title> <title>Adding Custom Fields</title>
<para> <para>
The <quote>Add a new custom field</quote> link permits you to add a To add a new Custom Field, click the "Add a new custom field" link. This
new field which can be either a free text box or a drop down menu. page displays several options for the new field, described below.
More field types will be available in future releases.
</para> </para>
<para> <para>
...@@ -2401,19 +2415,18 @@ ReadOnly: ENTRY, NA/NA, CANEDIT ...@@ -2401,19 +2415,18 @@ ReadOnly: ENTRY, NA/NA, CANEDIT
<listitem> <listitem>
<para> <para>
<emphasis>Name:</emphasis> <emphasis>Name:</emphasis>
the name of the field, used internally. This name MUST begin The name of the field in the database, used internally. This name
with <quote>cf_</quote>. If you omit this string, it will MUST begin with <quote>cf_</quote> to prevent confusion with
be automatically added to the name you entered. This way, all standard fields. If this string is omitted, it will
custom fields added to Bugzilla begin with <quote>cf_</quote>, be automatically added to the name entered.
avoiding any conflict with default fields.
</para> </para>
</listitem> </listitem>
<listitem> <listitem>
<para> <para>
<emphasis>Description:</emphasis> <emphasis>Description:</emphasis>
the string which is used as a label for this custom field. A brief string which is used as the label for this Custom Field.
That is the string that users will see, and so should be That is the string that users will see, and should be
short and explicit. short and explicit.
</para> </para>
</listitem> </listitem>
...@@ -2421,40 +2434,60 @@ ReadOnly: ENTRY, NA/NA, CANEDIT ...@@ -2421,40 +2434,60 @@ ReadOnly: ENTRY, NA/NA, CANEDIT
<listitem> <listitem>
<para> <para>
<emphasis>Type:</emphasis> <emphasis>Type:</emphasis>
as mentioned above, only two types are implemented so far. The type of field to create. There are
Free text boxes let you type any string, while drop down menus several types available:
only let you choose one value in the list provided. The list of <simplelist>
legal values for this field can be created and edited as soon as <member>
this custom field is added to the DB. See Large Text Box: A multiple line box for entering free text.
<xref linkend="edit-values-list" /> for information about editing </member>
legal values. <member>
Free Text: A single line box for entering free text.
</member>
<member>
Multiple-Selection Box: A list box where multiple options
can be selected. After creating this field, it must be edited
to add the selection options. See
<xref linkend="edit-values-list" /> for information about
editing legal values.
</member>
<member>
Drop Down: A list box where only one option can be selected.
After creating this field, it must be edited to add the
selection options. See
<xref linkend="edit-values-list" /> for information about
editing legal values.
</member>
<member>
Date/Time: A date field. This field appears with a
calendar widget for choosing the date.
</member>
</simplelist>
</para> </para>
</listitem> </listitem>
<listitem> <listitem>
<para> <para>
<emphasis>Sortkey:</emphasis> <emphasis>Sortkey:</emphasis>
this integer determines in which order custom fields are Integer that determines in which order Custom Fields are
displayed in the UI, especially when viewing a bug. Fields displayed in the User Interface, especially when viewing a bug.
with lower values are displayed first. Fields with lower values are displayed first.
</para> </para>
</listitem> </listitem>
<listitem> <listitem>
<para> <para>
<emphasis>Can be set on bug creation:</emphasis> <emphasis>Can be set on bug creation:</emphasis>
this boolean determines whether this field can be set on Boolean that determines whether this field can be set on
bug creation or not. If not, then you have to create the bug creation. If not selected, then a bug must be created
bug first before being able to set this field. Else you before this field can be set. See <xref linkend="bugreports" />
can set its value at the same time you file a bug, for information about filing bugs.
see <xref linkend="bugreports" /> about filing bugs.
</para> </para>
</listitem> </listitem>
<listitem> <listitem>
<para> <para>
<emphasis>Displayed in bugmail for new bugs:</emphasis> <emphasis>Displayed in bugmail for new bugs:</emphasis>
this boolean determines whether the value set on this field Boolean that determines whether the value set on this field
should appear in bugmail when the bug is filed. This attribute should appear in bugmail when the bug is filed. This attribute
has no effect if the field cannot be set on bug creation. has no effect if the field cannot be set on bug creation.
</para> </para>
...@@ -2463,8 +2496,8 @@ ReadOnly: ENTRY, NA/NA, CANEDIT ...@@ -2463,8 +2496,8 @@ ReadOnly: ENTRY, NA/NA, CANEDIT
<listitem> <listitem>
<para> <para>
<emphasis>Is obsolete:</emphasis> <emphasis>Is obsolete:</emphasis>
this boolean determines whether or not this field should Boolean that determines whether this field should
be displayed at all. Obsolete custom fields are hidden. be displayed at all. Obsolete Custom Fields are hidden.
</para> </para>
</listitem> </listitem>
</itemizedlist> </itemizedlist>
...@@ -2475,7 +2508,7 @@ ReadOnly: ENTRY, NA/NA, CANEDIT ...@@ -2475,7 +2508,7 @@ ReadOnly: ENTRY, NA/NA, CANEDIT
<title>Editing Custom Fields</title> <title>Editing Custom Fields</title>
<para> <para>
As soon as a custom field is created, its name and type cannot be As soon as a Custom Field is created, its name and type cannot be
changed. If this field is a drop down menu, its legal values can changed. If this field is a drop down menu, its legal values can
be set as described in <xref linkend="edit-values-list" />. All be set as described in <xref linkend="edit-values-list" />. All
other attributes can be edited as described above. other attributes can be edited as described above.
...@@ -2486,9 +2519,9 @@ ReadOnly: ENTRY, NA/NA, CANEDIT ...@@ -2486,9 +2519,9 @@ ReadOnly: ENTRY, NA/NA, CANEDIT
<title>Deleting Custom Fields</title> <title>Deleting Custom Fields</title>
<para> <para>
It is only possible to delete obsolete custom fields It is only possible to delete obsolete Custom Fields
if the field has never been used in the database. if the field has never been used in the database.
If you want to remove a field which already has content, To remove a field which already has content,
mark it as obsolete. mark it as obsolete.
</para> </para>
</section> </section>
...@@ -2501,9 +2534,9 @@ ReadOnly: ENTRY, NA/NA, CANEDIT ...@@ -2501,9 +2534,9 @@ ReadOnly: ENTRY, NA/NA, CANEDIT
Since Bugzilla 2.20 RC1, legal values for Operating Systems, platforms, Since Bugzilla 2.20 RC1, legal values for Operating Systems, platforms,
bug priorities and severities can be edited from the User Interface bug priorities and severities can be edited from the User Interface
directly. This means that it is no longer required to manually edit directly. This means that it is no longer required to manually edit
<filename>localconfig</filename>. Starting with Bugzilla 2.23.3, you <filename>localconfig</filename>. Starting with Bugzilla 2.23.3,
can also customize the list of valid resolutions from the same interface, the list of valid resolutions can be customized from the same interface.
and since Bugzilla 3.1.1 the list of valid bug statuses can be customized Since Bugzilla 3.1.1 the list of valid bug statuses can be customized
as well. as well.
</para> </para>
...@@ -2511,12 +2544,13 @@ ReadOnly: ENTRY, NA/NA, CANEDIT ...@@ -2511,12 +2544,13 @@ ReadOnly: ENTRY, NA/NA, CANEDIT
<title>Viewing/Editing legal values</title> <title>Viewing/Editing legal values</title>
<para> <para>
Editing legal values requires <quote>admin</quote> privileges. Editing legal values requires <quote>admin</quote> privileges.
A link named <quote>Field Values</quote> is visible in your footer and Select "Legal Values" from the Administration page. A list of all
clicking on it displays the list of fields whose values can be edited. fields, both system fields and Custom Fields, for which legal values
can be edited appears. Click a field name to edit its legal values.
</para> </para>
<para> <para>
You can add as many legal values as you want, and each value must be There is no limit to how many values a field can have, but each value
unique (on a per field basis). The sortkey is important to display these must be unique to that field. The sortkey is important to display these
values in the desired order. values in the desired order.
</para> </para>
</section> </section>
...@@ -2524,8 +2558,8 @@ ReadOnly: ENTRY, NA/NA, CANEDIT ...@@ -2524,8 +2558,8 @@ ReadOnly: ENTRY, NA/NA, CANEDIT
<section id="edit-values-delete"> <section id="edit-values-delete">
<title>Deleting legal values</title> <title>Deleting legal values</title>
<para> <para>
You can also delete legal values, but only if the two following conditions Legal values from Custom Fields can be deleted, but only if the
are respected: following two conditions are respected:
</para> </para>
<orderedlist> <orderedlist>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment