File: webissues.custom.html

package info (click to toggle)
webissues 1.1.5-10
  • links: PTS
  • area: main
  • in suites:
  • size: 17,108 kB
  • sloc: ansic: 97,819; cpp: 33,773; javascript: 1,171; xml: 465; sh: 378; makefile: 17
file content (193 lines) | stat: -rw-r--r-- 20,279 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Chapter 6. Customizing the system</title>
    <link rel="stylesheet" type="text/css" href="common/style.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="home" href="index.html" title="WebIssues Manual" />
    <link rel="up" href="index.html" title="WebIssues Manual" />
    <link rel="prev" href="webissues.admin.updating.html" title="Updating the system" />
    <link rel="next" href="webissues.custom.views.html" title="View settings" />
  </head>
  <body>
    <div id="wrapper">
      <div id="header">
        <div id="header-top">
          <div id="header-left">
            <h1><img src="common/webissues.png" alt="WebIssues" id="logo" />WebIssues Manual</h1>
          </div>
          <div id="header-right">
            <h2 class="subtitle">Version 1.1.5</h2>
          </div>
        </div>
        <div id="infobar">
          <div id="infobar-left">
            <a accesskey="h" href="index.html">Home</a>
          </div>
          <div id="infobar-right"></div>
        </div>
      </div>
      <div id="body">
        <div class="navlinks">
          <div class="navleft">&laquo; <a accesskey="p" href="webissues.admin.updating.html">Updating the system</a></div>
          <div class="navright"><a accesskey="n" href="webissues.custom.views.html">View settings</a> &raquo;</div>
          <div class="clear"></div>
        </div>
        <div class="chapter">
          <div class="titlepage">
            <div>
              <div>
                <h1 class="title"><a id="webissues.custom"></a>Chapter 6. Customizing the system</h1>
              </div>
            </div>
          </div>
          <p>This chapter describes how to configure and customize the system to suit your needs. It is intended primarily for advanced administrators.</p>
          <div class="sect1">
            <div class="titlepage">
              <div>
                <div>
                  <h2 class="title" style="clear: both"><a id="webissues.custom.types"></a>Managing issue types</h2>
                </div>
              </div>
            </div>
            <p>By default, the installer of WebIssues system creates several predefined types of issues, which can be used to track bugs and tasks in a typical software project, and to create discussion forums. You can modify these built-in issue types, adapting them to your needs, and create entirely new types of issues.</p>
            <p>To manage the issue types, go to the Administration Panel and click <span class="guilabel">Issue Types</span>. In case of the Desktop Client, use the <span class="guilabel">Issue Types</span> command from the main window's toolbar. Below is the list of standard issue types:</p>
            <div class="figure">
              <a id="id631259"></a>
              <div class="figure-contents">
                <div class="mediaobject">
                  <img src="images/ch06-fig01.png" alt="Issue types" />
                </div>
              </div>
              <div class="figure-title">Figure 6.1. Issue types</div>
            </div>
            <p>For each issue type its attributes are displayed. For each attribute, its type is displayed, the default value for new issues, and also information whether the attribute is required and additional details that depend on its type.</p>
            <p>Let's start by adding a new attribute to an existing issue type. We will add the possibility of entering the name of the module to which the reported bug is related. Select the Bugs issue type and click <span class="guilabel">Add Attribute</span>. Then enter the name of the new attribute.</p>
            <div class="figure">
              <a id="id631277"></a>
              <div class="figure-contents">
                <div class="mediaobject">
                  <img src="images/ch06-fig02.png" alt="Adding an attribute" />
                </div>
              </div>
              <div class="figure-title">Figure 6.2. Adding an attribute</div>
            </div>
            <p>By default, a new attribute has the <span class="guilabel">Text</span> type, which allows entering any text. Click <span class="guibutton">Edit</span> in the <span class="guilabel">Attribute Details</span> box to change additional attribute settings that depend on its type.</p>
            <div class="figure">
              <a id="id631303"></a>
              <div class="figure-contents">
                <div class="mediaobject">
                  <img src="images/ch06-fig03.png" alt="Details of a text attribute" />
                </div>
              </div>
              <div class="figure-title">Figure 6.3. Details of a text attribute</div>
            </div>
            <p>In case of a text attribute, you can select <span class="guilabel">Allow entering multiple lines of text</span> to facilitate entering longer fragments of text, which can be divided into lines. The field for editing attribute values ​​will then become bigger. You can specify the maximum length of the entered text to limit it to a specified number of characters. Remember, however, that the attribute value can never be longer than 255 characters. To enter longer fragments of text (for example, the description of the bug) it's better to use comments. In the same way, you can also specify a minimum length of the entered text.</p>
            <p>If the list of modules, to which reported bugs are related, is known in advance, then a <span class="guilabel">Dropdown list</span> can be used instead of a text attribute. Select this type in the <span class="guilabel">Attribute Type</span> field and then click <span class="guibutton">Edit</span> to change the details of the attribute.</p>
            <div class="figure">
              <a id="id631393"></a>
              <div class="figure-contents">
                <div class="mediaobject">
                  <img src="images/ch06-fig04.png" alt="Details of a dropdown list" />
                </div>
              </div>
              <div class="figure-title">Figure 6.4. Details of a dropdown list</div>
            </div>
            <p>You must provide a list of possible values ​​to select. To do this, enter each value, in this case the name of the module, in a separate line. By default, it's only possible to select one of the defined values. However, if you select the <span class="guilabel">Allow entering custom values​​</span> option, then it will be possible to enter any value of the attribute when adding or editing an issue. This way, you can type the name of a module which was not included in the list. In this case, it's also possible to define the minimum and maximum length of text, like in case of text attributes.</p>
            <p>The <span class="guilabel">Allow selecting multiple values​​</span> option makes it possible to select multiple values, separated by commas. This is useful if the reported bugs may be associated with several modules at the same time. Both options can be combined; in that case it's possible to enter several values​​, and not necessarily selected from the list. This mode of operation, for example, allows marking issues with <span class="quote">“<span class="quote">tags</span>”</span>, which can be predefined, but can also be entered manually.</p>
            <p>Another type of attributes is <span class="guilabel">Numeric</span>. Let's assume that you want to extend the Tasks issue type with a Level of effort attribute whose value is expressed in hours. Select the <span class="guilabel">Numeric</span> type from the list of attribute types and click <span class="guibutton">Edit</span>.</p>
            <div class="figure">
              <a id="id631425"></a>
              <div class="figure-contents">
                <div class="mediaobject">
                  <img src="images/ch06-fig05.png" alt="Details of a numeric attribute" />
                </div>
              </div>
              <div class="figure-title">Figure 6.5. Details of a numeric attribute</div>
            </div>
            <p>Numeric values can be either integer, or specified with a certain number of decimal places; at most 6. You can also specify the minimum and maximum value of the attribute. For example, the Priority attribute of a Task by default accepts values ​​from 1 to 3. You can also choose to <span class="guilabel">Strip trailing decimal zeros</span> to ignore the zeros after the decimal point; for example, the value <span class="quote">“<span class="quote">12.50</span>”</span> will then be displayed as <span class="quote">“<span class="quote">12.5</span>”</span>.</p>
            <p>Attributes can also store a date or a date and time. For example, the Tasks issue type contains a Due Date attribute that stores the anticipated date of completion of the task. We can add a Finished attribute, which will store the actual date of completion of the task. Select the <span class="guilabel">Date &amp; time</span> attribute type and click <span class="guibutton">Edit</span> to specify the details of the attribute.</p>
            <div class="figure">
              <a id="id631453"></a>
              <div class="figure-contents">
                <div class="mediaobject">
                  <img src="images/ch06-fig06.png" alt="Details of a date &amp; time attribute" />
                </div>
              </div>
              <div class="figure-title">Figure 6.6. Details of a date &amp; time attribute</div>
            </div>
            <p>The value of the attribute can be a date, for example <span class="quote">“<span class="quote">9/5/2011</span>”</span>, or date and time with an accuracy of one minute, for example <span class="quote">“<span class="quote">9/5/2011 6:34 pm</span>”</span>. If you choose the <span class="guilabel">Date and time without time zone conversion</span> option, the time will always be the same, regardless of the time zone. If you choose the <span class="guilabel">Date and time using local time zone</span>, the values are stored as GMT time, and when displayed, they will be automatically converted to the local time zone. This option is useful if the server is used by people in different time zones. For more information about time zones, see <a class="xref" href="webissues.custom.locale.html" title="Server settings">the section called “Server settings”</a>.</p>
            <p>The last type of attributes is <span class="guilabel">User</span>. Both Bugs and Tasks include attributes named Assigned To, but you can create more attributes of this type. In case of a bug, for example, you can use separate attributes to indicate the person who reported, fixed and tested the bug.</p>
            <div class="figure">
              <a id="id631521"></a>
              <div class="figure-contents">
                <div class="mediaobject">
                  <img src="images/ch06-fig07.png" alt="Details of a user attribute" />
                </div>
              </div>
              <div class="figure-title">Figure 6.7. Details of a user attribute</div>
            </div>
            <p>Two options are available in the attribute settings. The <span class="guilabel">Allow only members of the project</span> option allows you to limit the list of users, who may be assigned to an issue, to those who are members of the project. This option is useful if the system has many projects and many users, and most users have access only to selected projects. The <span class="guilabel">Allow selecting multiple values​​</span> option makes it possible to select multiple values, separated by commas, just like in case of the dropdown list.</p>
            <p>Regardless of the type and detailed settings, each attribute has also some common settings. If you choose the <span class="guilabel">Attribute is required</span> option, the attribute must always have a certain value. Otherwise, you can leave an empty value when creating new issues, and also clear the value for an existing issue. Required attributes are marked with an asterisk when creating or editing an issue.</p>
            <p>In the <span class="guilabel">Default value</span> field you can specify the value of the attribute for newly created issues. When creating an issue, you can leave the default values ​​of individual attributes, or modify them. If the attribute is required, and does not have a default value, the value must be provided when creating the issue. When specifying the default value, you can use similar special values​​, as in case of filter definitions. The <span class="quote">“<span class="quote">[Today]</span>”</span> value is replaced with the current date when creating the issue (with the possibility of subtracting or adding a specified number of days), while the <span class="quote">“<span class="quote">[Me]</span>”</span> value is replaced with the name of the user who creates the issue.</p>
            <p>At any time you can change the definition of existing attributes. Let's assume that we want the Assigned To attribute to be required, and that bugs were assigned by default to the person who created them. Select the attribute and click <span class="guilabel">Modify Attribute</span>. Select the <span class="guilabel">Attribute is required</span> option, and in the <span class="guilabel">Default Value</span> field enter <span class="quote">“<span class="quote">[Me]</span>”</span>. Then click <span class="guibutton">OK</span> to confirm the changes.</p>
            <div class="figure">
              <a id="id635341"></a>
              <div class="figure-contents">
                <div class="mediaobject">
                  <img src="images/ch06-fig08.png" alt="Modifying attribute definition" />
                </div>
              </div>
              <div class="figure-title">Figure 6.8. Modifying attribute definition</div>
            </div>
            <p>Changes of definitions of existing attributes are taken into account when creating new issues and editing existing issues. They do not affect the current attribute values ​​for existing issues. In our example, if some bugs already exist in the system, then they will remain unassigned, although the Assigned To attribute is now required. However, when editing a bug, you must assign it to someone.</p>
            <p>Now let's suppose that we want the Severity of a bug to be specified on a scale from 1 to 5, not from 1 to 3. Select the attribute and click <span class="guilabel">Modify Attribute</span>. Then click <span class="guibutton">Edit</span> to go to the details of the attribute. Change the <span class="guilabel">Maximum value</span> to 5 and click <span class="guibutton">OK</span>. Then change the default attribute value to 3 and click <span class="guibutton">OK</span> again to save the changes.</p>
            <p>To a limited extent, you can also change the type of an existing attribute. For example, let's suppose that we want to define a list of choices for the Version attribute of Bugs issue type. Select the attribute and click <span class="guilabel">Modify Attribute</span>, and then from the <span class="guilabel">Attribute Type</span> list select <span class="guilabel">Dropdown list</span>. Then click <span class="guibutton">Edit</span> to go to the attribute details and enter a list of values ​​to select. Also select the <span class="guilabel">Allow entering own values​​</span> option to allow entering values which are not in the list. Click <span class="guibutton">OK</span> twice to confirm the changes.</p>
            <p>The Text, Dropdown List and User attributes store the value as plain text, so they can be used interchangeably, and you can change one type to another. However, the Numeric and Date &amp; time attributes cannot be changed to another type.</p>
            <p>To change the name of an attribute, use the <span class="guilabel">Rename Attribute</span> command. Attribute names can be arbitrary, but must be unique within the issue type. You can also remove an existing attribute if it is no longer needed. To do this, select the attribute and click <span class="guilabel">Delete Attribute</span>.</p>
            <div class="warning">
              <h3 class="title">Warning</h3>
              <p>When deleting attributes, pay particular attention whether you do not unintentionally delete the wrong data. All current and historical values of the attribute ​​are permanently and irreversibly removed from the system and it's not possible to restore them.</p>
            </div>
            <p>In addition to modifying predefined types issues, the WebIssues system also allows creating entirely new issue types. Let's suppose that we want to create a simple calendar with events related to different people. Click <span class="guilabel">Add Type</span> to create a new type of issues.</p>
            <div class="figure">
              <a id="id635465"></a>
              <div class="figure-contents">
                <div class="mediaobject">
                  <img src="images/ch06-fig09.png" alt="Creating an issue type" />
                </div>
              </div>
              <div class="figure-title">Figure 6.9. Creating an issue type</div>
            </div>
            <p>Enter the name of the type and click <span class="guibutton">OK</span>. The new type has no attributes yet, so select it and click <span class="guilabel">Add Attribute</span>. Create an attribute named <span class="quote">“<span class="quote">Person</span>”</span> and select the User type. Mark the attribute as required and enter <span class="quote">“<span class="quote">[Me]</span>”</span> as the default value. Then add another attribute named <span class="quote">“<span class="quote">Date</span>”</span>, with the Date &amp; time type, setting its default value to <span class="quote">“<span class="quote">[Today]</span>”</span>. The tree issue types, after collapsing default types, will look like this:</p>
            <div class="figure">
              <a id="id635481"></a>
              <div class="figure-contents">
                <div class="mediaobject">
                  <img src="images/ch06-fig10.png" alt="Issue types with the new type" />
                </div>
              </div>
              <div class="figure-title">Figure 6.10. Issue types with the new type</div>
            </div>
            <p>To be able to create issues of the new type, you must also create a folder that uses this type. You can also change the order of attributes and the default view and public views for this type. For more information, refer to <a class="xref" href="webissues.custom.views.html" title="View settings">the section called “View settings”</a>.</p>
            <p>To change the name of an issue type, use the <span class="guilabel">Rename Type</span> command. You can also remove the type of issues using the <span class="guilabel">Delete Type</span> command. If there are some folders of this type in the system, a warning will be displayed.</p>
            <div class="warning">
              <h3 class="title">Warning</h3>
              <p>When deleting issue types, pay particular attention whether you do not unintentionally delete the wrong data. All folders and issues of this type ​​are permanently and irreversibly removed from the system and it's not possible to restore them.</p>
            </div>
          </div>
        </div>
        <div class="navlinks">
          <div class="navleft">&laquo; <a accesskey="p" href="webissues.admin.updating.html">Updating the system</a></div>
          <div class="navright"><a accesskey="n" href="webissues.custom.views.html">View settings</a> &raquo;</div>
          <div class="clear"></div>
        </div>
      </div>
      <div id="footer">
        <p class="copyright">Copyright © 2007-2017 WebIssues Team</p>
      </div>
    </div>
  </body>
</html>