Sophie

Sophie

distrib > Mageia > 2 > i586 > by-pkgid > 9c3573016ec1b84bace649a95e67b8a3 > files > 910

bugzilla-4.2.1-1.mga2.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>Custom Fields</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="The Bugzilla Guide - 4.2.1 
    Release"
HREF="index.html"><LINK
REL="UP"
TITLE="Administering Bugzilla"
HREF="administration.html"><LINK
REL="PREVIOUS"
TITLE="Keywords"
HREF="keywords.html"><LINK
REL="NEXT"
TITLE="Legal Values"
HREF="edit-values.html"></HEAD
><BODY
CLASS="section"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>The Bugzilla Guide - 4.2.1 
    Release</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="keywords.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 3. Administering Bugzilla</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="edit-values.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="custom-fields"
>3.10. Custom Fields</A
></H1
><P
>&#13;      The release of Bugzilla 3.0 added the ability to create Custom Fields. 
      Custom Fields are treated like any other field - they can be set in bugs
      and used for search queries. Administrators should keep in mind that
      adding too many fields can make the user interface more complicated and
      harder to use. Custom Fields should be added only when necessary and with 
      careful consideration.
    </P
><DIV
CLASS="tip"
><P
></P
><TABLE
CLASS="tip"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="../images/tip.gif"
HSPACE="5"
ALT="Tip"></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>&#13;        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. 
      </P
></TD
></TR
></TABLE
></DIV
><P
>&#13;      Administrators can manage Custom Fields using the
      <SPAN
CLASS="QUOTE"
>"Custom Fields"</SPAN
> 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". 
    </P
><DIV
CLASS="section"
><H2
CLASS="section"
><A
NAME="add-custom-fields"
>3.10.1. Adding Custom Fields</A
></H2
><P
>&#13;        To add a new Custom Field, click the "Add a new custom field" link. This
        page displays several options for the new field, described below.
      </P
><P
>&#13;        The following attributes must be set for each new custom field:
        <P
></P
><UL
><LI
><P
>&#13;              <EM
>Name:</EM
>
              The name of the field in the database, used internally. This name 
              MUST begin with <SPAN
CLASS="QUOTE"
>"cf_"</SPAN
> to prevent confusion with 
              standard fields. If this string is omitted, it will
              be automatically added to the name entered. 
            </P
></LI
><LI
><P
>&#13;              <EM
>Description:</EM
>
              A brief string which is used as the label for this Custom Field.
              That is the string that users will see, and should be
              short and explicit.
            </P
></LI
><LI
><P
>&#13;              <EM
>Type:</EM
>
              The type of field to create. There are
              several types available:
               <P
></P
><TABLE
BORDER="0"
><TBODY
><TR
><TD
>&#13;                   Bug ID: A field where you can enter the ID of another bug from
                   the same Bugzilla installation. To point to a bug in a remote
                   installation, use the See Also field instead.
                 </TD
></TR
><TR
><TD
>&#13;                   Large Text Box: A multiple line box for entering free text.
                 </TD
></TR
><TR
><TD
>&#13;                   Free Text: A single line box for entering free text.
                 </TD
></TR
><TR
><TD
>&#13;                   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 
                   <A
HREF="edit-values.html#edit-values-list"
>Section 3.11.1</A
> for information about 
                   editing legal values.
                 </TD
></TR
><TR
><TD
>&#13;                   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 
                   <A
HREF="edit-values.html#edit-values-list"
>Section 3.11.1</A
> for information about 
                   editing legal values.
                 </TD
></TR
><TR
><TD
>&#13;                   Date/Time: A date field. This field appears with a 
                   calendar widget for choosing the date.
                 </TD
></TR
></TBODY
></TABLE
><P
></P
>
            </P
></LI
><LI
><P
>&#13;              <EM
>Sortkey:</EM
>
              Integer that determines in which order Custom Fields are
              displayed in the User Interface, especially when viewing a bug. 
              Fields with lower values are displayed first.
            </P
></LI
><LI
><P
>&#13;              <EM
>Reverse Relationship Description:</EM
>
              When the custom field is of type <SPAN
CLASS="QUOTE"
>"Bug ID"</SPAN
>, you can
              enter text here which will be used as label in the referenced
              bug to list bugs which point to it. This gives you the ability
              to have a mutual relationship between two bugs.
            </P
></LI
><LI
><P
>&#13;              <EM
>Can be set on bug creation:</EM
>
              Boolean that determines whether this field can be set on
              bug creation. If not selected, then a bug must be created 
              before this field can be set. See <A
HREF="bugreports.html"
>Section 5.6</A
> 
              for information about filing bugs.
            </P
></LI
><LI
><P
>&#13;              <EM
>Displayed in bugmail for new bugs:</EM
>
              Boolean that determines whether the value set on this field
              should appear in bugmail when the bug is filed. This attribute
              has no effect if the field cannot be set on bug creation.
            </P
></LI
><LI
><P
>&#13;              <EM
>Is obsolete:</EM
>
              Boolean that determines whether this field should
              be displayed at all. Obsolete Custom Fields are hidden.
            </P
></LI
><LI
><P
>&#13;              <EM
>Is mandatory:</EM
>
              Boolean that determines whether this field must be set.
              For single and multi-select fields, this means that a (non-default)
              value must be selected, and for text and date fields, some text
              must be entered.
            </P
></LI
><LI
><P
>&#13;              <EM
>Field only appears when:</EM
>
              A custom field can be made visible when some criteria is met.
              For instance, when the bug belongs to one or more products,
              or when the bug is of some given severity. If left empty, then
              the custom field will always be visible, in all bugs.
            </P
></LI
><LI
><P
>&#13;              <EM
>Field that controls the values that appear in this field:</EM
>
              When the custom field is of type <SPAN
CLASS="QUOTE"
>"Drop Down"</SPAN
> or
              <SPAN
CLASS="QUOTE"
>"Multiple-Selection Box"</SPAN
>, you can restrict the
              availability of the values of the custom field based on the
              value of another field. This criteria is independent of the
              criteria used in the <SPAN
CLASS="QUOTE"
>"Field only appears when"</SPAN
>
              setting. For instance, you may decide that some given value
              <SPAN
CLASS="QUOTE"
>"valueY"</SPAN
> is only available when the bug status
              is RESOLVED while the value <SPAN
CLASS="QUOTE"
>"valueX"</SPAN
> should
              always be listed.
              Once you have selected the field which should control the
              availability of the values of this custom field, you can
              edit values of this custom field to set the criteria, see
              <A
HREF="edit-values.html#edit-values-list"
>Section 3.11.1</A
>.
            </P
></LI
></UL
>
      </P
></DIV
><DIV
CLASS="section"
><H2
CLASS="section"
><A
NAME="edit-custom-fields"
>3.10.2. Editing Custom Fields</A
></H2
><P
>&#13;        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
        be set as described in <A
HREF="edit-values.html#edit-values-list"
>Section 3.11.1</A
>. All
        other attributes can be edited as described above.
      </P
></DIV
><DIV
CLASS="section"
><H2
CLASS="section"
><A
NAME="delete-custom-fields"
>3.10.3. Deleting Custom Fields</A
></H2
><P
>&#13;        Only custom fields which are marked as obsolete, and which never
        have been used, can be deleted completely (else the integrity
        of the bug history would be compromised). For custom fields marked
        as obsolete, a "Delete" link will appear in the <SPAN
CLASS="QUOTE"
>"Action"</SPAN
>
        column. If the custom field has been used in the past, the deletion
        will be rejected. But marking the field as obsolete is sufficient
        to hide it from the user interface entirely.
      </P
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="keywords.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="edit-values.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Keywords</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="administration.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Legal Values</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>