Code

doc cleanup, editing and creation of a What's New
[roundup.git] / doc / user_guide.txt
1 ==========
2 User Guide
3 ==========
5 :Version: $Revision: 1.27 $
7 .. contents::
9 Note: this document will refer to *issues* as the primary store of
10 information in the tracker. This is the default of the classic template,
11 but may vary in any given installation.
14 Your Tracker in a Nutshell
15 ==========================
17 Your tracker holds information about issues in bundles we call *items*.
18 An item may be an *issue* (a bug or feature request) or a *user*. The
19 issue-ness or user-ness is called the item's *class*. So, for bug
20 reports and features, the class is "issue", and for users the class is
21 "user".
23 Each item in the tracker has an id number that identifies it along with
24 its item class. To identify a particular issue or user, we combine the
25 class with the number to create a unique label, so that user 1 (who,
26 incidentally, is *always* the "admin" user) is referred to as "user1".
27 Issue number 315 is referred to as "issue315". We call that label the
28 item's *designator*.
30 Items in the database are never deleted, they're just "retired". You
31 can still refer to them by ID - hence removing an item won't break
32 references to the item. It's just that the item won't appear in any
33 listings.
36 Accessing the Tracker
37 ---------------------
39 You may access your tracker through one of three ways:
41 1. through the `web interface`_,
42 2. through the `e-mail gateway`_, or
43 3. using the `command line tool`_.
45 The last is usually only used by administrators. Most users will use the
46 web and email interfaces. All three are explained below.
49 Issue life cycles in Roundup
50 ----------------------------
52 New issues may be submitted via the web or email.
54 By default, the issue will have the status "unread". If another message
55 is received for the issue, its status will change to "chatting". 
57 The "home" page for a tracker will generally display all issues which
58 are not "resolved.
60 If an issue is closed, and a new message is received then it'll be
61 reopened to the state of "chatting".
64 Entering values in your Tracker
65 -------------------------------
67 All interfaces to your tracker use the same format for entering values.
68 This means the web interface for entering a new issue, the web interface
69 for searching issues, the email interface and even the command-line
70 administration tool.
73 String and Numeric properties
74 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
76 These fields just take a simple text value, like ``It's broken``.
79 Boolean properties
80 ~~~~~~~~~~~~~~~~~~
82 These fields take a value which indicates "yes"/"no", "true"/"false",
83 "1"/"0" or "on"/"off".
86 Constrained (link and multilink) properties
87 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
89 Fields like "Assigned To" and "Topics" hold references to items in other
90 classes ("user" and "keyword" in those two cases.)
92 Sometimes, the selection is done through a menu, like in the "Assigned
93 To" field.
95 Where the input is not a simple menu selection, we use a comma-separated
96 list of values to indicated which values of "user" or "keyword" are
97 interesting. The values may be either numeric ids or the names of items.
98 The special value "-1" may be used to match items where the property is
99 not set. For example, the following searches on the issues:
101 ``assignedto=richard,george``
102   match issues which are assigned to richard or george.
103 ``assignedto=-1``
104   match issues that are not assigned to a user.
105 ``assignedto=2,3,40``
106   match issues that are assigned to users 2, 3 or 40.
107 ``topic=user interface``
108   match issues with the keyword "user interface" in their topic list
109 ``topic=web interface,email interface``
110   match issues with the keyword "web interface" or "email interface" in
111   their topic list
112 ``topic=-1``
113   match issues with no topics set
116 Date properties
117 ~~~~~~~~~~~~~~~
119 Some fields in the search page (e.g. "Activity" or "Creation date") hold
120 dates.  A plain date entered as a search field will match that date
121 exactly in the database.  We may also accept ranges of dates. You can
122 specify range of dates in one of two formats:
124 1. English syntax::
126     [From <value>][To <value>]
128    Keywords "From" and "To" are case insensitive. Keyword "From" is
129    optional.
131 2. "Geek" syntax::
133     [<value>];[<value>]
135 Either first or second ``<value>`` can be omitted in both syntaxes.
137 For example, if you enter string "from 9:00" to "Creation date" field,
138 roundup will find  all issues, that were created today since 9 AM.
140 Searching of "-2m; -1m" on activity field gives you issues which were
141 active between period of time since 2 months up-till month ago.
143 Other possible examples (consider local time is Sat Mar  8 22:07:48
144 2003)::
146     >>> Range("from 2-12 to 4-2")
147     <Range from 2003-02-12.00:00:00 to 2003-04-02.00:00:00>
148     
149     >>> Range("FROM 18:00 TO +2m")
150     <Range from 2003-03-08.18:00:00 to 2003-05-08.20:07:48>
151     
152     >>> Range("12:00;")
153     <Range from 2003-03-08.12:00:00 to None>
154     
155     >>> Range("tO +3d")
156     <Range from None to 2003-03-11.20:07:48>
157     
158     >>> Range("2002-11-10; 2002-12-12")
159     <Range from 2002-11-10.00:00:00 to 2002-12-12.00:00:00>
161     >>> Range("; 20:00 +1d")
162     <Range from None to 2003-03-09.20:00:00>
164     >>> Range("2003")
165     <Range from 2003-01-01.00:00:00 to 2003-12-31.23:59:59>
167     >>> Range("2003-04")
168     <Range from 2003-04-01.00:00:00 to 2003-04-30.23:59:59>
169     
171 Interval properties
172 ~~~~~~~~~~~~~~~~~~~
174 XXX explain...
176 When searching on interval properties use the same syntax as for dates.
179 Simple support for collision detection
180 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
182 Item edit pages remember when the item was last edited. When a form is
183 submitted, the user will be informed if someone else has edited the item
184 at the same time they tried to.
187 Web Interface
188 =============
190 Note: this document contains screenshots of the default look and feel.
191 Your site may have a slightly (or very) different look, but the
192 functionality will be very similar, and the concepts still hold.
194 The web interface is broken up into the following parts:
196 1. `lists of items`_,
197 2. `display, edit or entry of an item`_, and
198 3. `searching page`_.
201 Lists of Items
202 --------------
204 The first thing you'll see when you log into Roundup will be a list of
205 open (ie. not resolved) issues. This list has been generated by a bunch
206 of controls `under the covers`_ but for now, you can see something like:
208 .. img: images/index_logged_out.png
210 The screen is divided up into three sections:
212 .. img: images/page_layout.png
214 you may either register or log in. Registration takes you to:
216 .. img: images/registration.png
218 Once you're logged in, the screen changes slightly to:
220 .. img: images/index_logged_in.png
222 Note that the sidebar menu has changed slightly, so you can now get to
223 your "My Details" page:
225 .. img: images/my_details.png
227 Note the new information on this page - the history.
230 Display, edit or entry of an item
231 ---------------------------------
233 Create a new issue with "create new" under the issue subheading. This
234 will take you to:
236 .. img: images/new_issue.png
238 The `nosy list`_ is explained below. Enter some information and click
239 "submit new entry" and you'll be rewarded with:
241 .. img: images/new_issue_created.png
243 or, if you don't enter all the required information (or some other error
244 occurs) you'll get something like:
246 .. img: images/new_issue_error.png
249 Searching Page
250 --------------
252 See `entering values in your tracker`_ for an explanation of what you
253 may type into the search form.
256 Saving queries
257 ~~~~~~~~~~~~~~
259 You may save queries in the tracker by giving the query a name. Each user
260 may only have one query with a given name - if a subsequent search is
261 performed with the same query name supplied, then it will edit the
262 existing query of the same name.
264 Queries may be marked as "private". These queries are only visible to the
265 user that created them. If they're not marked "private" then all other
266 users may include the query in their list of "Your Queries". Marking it as
267 private at a later date does not affect users already using the query, nor
268 does deleting the query.
270 If a user subsequently creates or edits a public query, a new personal
271 version of that query is made, with the same editing rules as described
272 above.
275 Under the covers
276 ~~~~~~~~~~~~~~~~
278 The searching page converts your selections into the following
279 arguments:
281 ========== =============================================================
282 Argument   Description
283 ========== =============================================================
284 :sort      sort by prop name, optionally preceeded with '-' to give
285            descending or nothing for ascending sorting.
286 :group     group by prop name, optionally preceeded with '-' or to sort
287            in descending or nothing for ascending order.
288 :filter    selects which props should be displayed in the filter
289            section. Default is all.           
290 :columns   selects the columns that should be displayed. Default is
291            all.                     
292 propname   selects the values the item properties given by propname must
293            have (very basic search/filter).
294 ========== =============================================================
296 You may manually write URLS that contain these arguments, like so
297 (whitespace has been added for clarity)::
299     /issue?status=unread,in-progress,resolved&
300         topic=security,ui&
301         :group=priority&
302         :sort=-activity&
303         :filters=status,topic&
304         :columns=title,status,fixer
307 Access Controls
308 ---------------
310 User access is controlled through Permissions. These are are grouped
311 into Roles, and users have a comma-separated list of Roles assigned to
312 them.
314 Permissions divide access controls up into answering questions like:
316 - may the user edit issues ("Edit", "issue")
317 - is the user allowed to use the web interface ("Web Access")
318 - may the user edit other user's Roles through the web ("Web Roles")
320 Any number of new Permissions and Roles may be created as described in
321 the customisation documentation. Examples of new access controls are:
323 - only managers may sign off issues as complete
324 - don't give users who register through email web access
325 - let some users edit the details of all users
328 E-Mail Gateway
329 ==============
331 E-mail sent to Roundup is examined for several pieces of information:
333 1. `subject-line information`_ identifying the purpose of the e-mail
334 2. `sender identification`_ using the sender of the message
335 3. `e-mail message content`_ which is to be extracted
336 4. e-mail attachments which should be associated with the message
339 Subject-line information
340 ------------------------
342 The subject line of the incoming message is examined to find one of:
344 1. the item that the message is responding to,
345 2. the type of item the message should create, or
346 3. we default the item class and try some trickiness
348 If the subject line contains a prefix in ``[square brackets]`` then
349 we're looking at case 1 or 2 above. Note that any "re:" or "fwd:"
350 prefixes are stripped off the subject line before we start looking for
351 real information.
353 If an item designator (class name and id number, for example
354 ``issue123``) is found there, a new "msg" item is added to the
355 "messages" property for that item, and any new "file" items are added to
356 the "files" property for the item.
358 If just an item class name is found there, we attempt to create a new
359 item of that class with its "messages" property initialized to contain
360 the new "msg" item and its "files" property initialized to contain any
361 new "file" items.
363 The third case above - where no ``[information]`` is provided, the
364 tracker's ``MAIL_DEFAULT_CLASS`` configuration variable defines what
365 class of item the message relates to. We try to match the subject line
366 to an existing item of the default class, and if there's a match, the
367 message is related to that matched item. If not, then a new item of the
368 default class is created.
371 Setting Properties
372 ~~~~~~~~~~~~~~~~~~
374 The e-mail interface also provides a simple way to set properties on
375 items. At the end of the subject line, propname=value pairs can be
376 specified in square brackets, using the same conventions as for the
377 roundup set shell command.
379 For example,
381 - setting the priority of an issue::
383    Subject: Re: [issue1] the coffee machine is broken! [priority=urgent]
385 - adding yourself to a nosy list::
387    Subject: Re: [issue2] we're out of widgets [nosy=+richard]
389 - setting the nosy list to just you and cliff::
391    Subject: Re: [issue2] we're out of widgets [nosy=richard,cliff]
393 - removing yourself from a nosy list and setting the priority::
395    Subject: Re: [issue2] we're out of widgets [nosy=-richard;priority=bug]
397 In all cases, the message relates to issue 2. The ``Re:`` prefix is
398 stripped off.
401 Automatic Properties
402 ~~~~~~~~~~~~~~~~~~~~
404 **status of new issues**
405  When a new message is received that is not identified as being related
406  to an existing issue, it creates a new issue. The status of the new
407  issue is defaulted to "unread".
409 **reopening of resolved issues**
410  When a message is is received for a resolved issue, the issue status is
411  automatically reset to "chatting" to indicate new information has been
412  received.
415 Sender identification
416 ---------------------
418 If the sender of an email is unknown to Roundup (looking up both user
419 primary email addresses and their alternate addresses) then a new user
420 will be created. The new user will have their username set to the "user"
421 part of "user@domain" in their email address. Their password will be
422 completely randomised, and they'll have to visit the web interface to
423 have it changed. Note that some sites don't allow web access by users
424 who register via email like this.
427 E-Mail Message Content
428 ----------------------
430 Roundup only associates plain text (MIME type ``text/plain``) as
431 messages for items. Any other parts of a message are associated as
432 downloadable files. If no plain text part is found, the message is
433 rejected.
435 To do this, incoming messages are examined for multiple parts:
437 * In a multipart/mixed message or part, each subpart is extracted and
438   examined. The text/plain subparts are assembled to form the textual
439   body of the message, to be stored in the file associated with a "msg"
440   class item. Any parts of other types are each stored in separate files
441   and given "file" class items that are linked to the "msg" item.
442 * In a multipart/alternative message or part, we look for a text/plain
443   subpart and ignore the other parts.
445 If the message is a response to a previous message, and contains quoted
446 sections, then these will be stripped out of the message if the
447 ``EMAIL_KEEP_QUOTED_TEXT`` configuration variable is set to ``'no'``.
449 Message summary
450 ~~~~~~~~~~~~~~~
452 The "summary" property on message items is taken from the first
453 non-quoting section in the message body. The message body is divided
454 into sections by blank lines. Sections where the second and all
455 subsequent lines begin with a ">" or "|" character are considered
456 "quoting sections". The first line of the first non-quoting section
457 becomes the summary of the message.
460 Address handling
461 ----------------
463 All of the addresses in the ``To:`` and ``Cc:`` headers of the incoming
464 message are looked up among the tracker users, and the corresponding
465 users are placed in the "recipients" property on the new "msg" item. The
466 address in the ``From:`` header similarly determines the "author"
467 property of the new "msg" item. The default handling for addresses that
468 don't have corresponding users is to create new users with no passwords
469 and a username equal to the address.
471 The addresses mentioned in the ``To:``, ``From:`` and ``Cc:`` headers of
472 the message may be added to the `nosy list`_ depending on:
474 ``ADD_AUTHOR_TO_NOSY``
475  Does the author of a message get placed on the nosy list automatically?
476  If 'new' is used, then the author will only be added when a message
477  creates a new issue. If 'yes', then the author will be added on
478  followups too. If 'no', they're never added to the nosy.
480 ``ADD_RECIPIENTS_TO_NOSY``
481  Do the recipients (To:, Cc:) of a message get placed on the nosy list?
482  If 'new' is used, then the recipients will only be added when a message
483  creates a new issue. If 'yes', then the recipients will be added on
484  followups too. If 'no', they're never added to the nosy.
487 Nosy List
488 ~~~~~~~~~
490 Roundup watches for additions to the "messages" property of items.
492 When a new message is added, it is sent to all the users on the "nosy"
493 list for the item that are not already on the "recipients" list of the
494 message. Those users are then appended to the "recipients" property on
495 the message, so multiple copies of a message are never sent to the same
496 user. The journal recorded by the hyperdatabase on the "recipients"
497 property then provides a log of when the message was sent to whom.
499 If the author of the message is also in the nosy list for the item that
500 the message is attached to, then the config var ``MESSAGES_TO_AUTHOR``
501 is queried to determine if they get a nosy list copy of the message too.
504 Mail gateway script command line
505 --------------------------------
507 Usage::
509   roundup-mailgw [[-C class] -S field=value]* <instance home> [method]
511 The roundup mail gateway may be called in one of three ways:
513  - with an instance home as the only argument,
514  - with both an instance home and a mail spool file, or
515  - with both an instance home and a pop server account.
516  
517 It also supports optional -C and -S arguments that allows you to set a
518 fields for a class created by the roundup-mailgw. The default class if
519 not specified is msg, but the other classes: issue, file, user can also
520 be used. The -S or --set options uses the same
521 property=value[;property=value] notation accepted by the command line
522 roundup command or the commands that can be given on the Subject line of
523 an email message.
525 It can let you set the type of the message on a per email address basis.
527 PIPE:
528  In the first case, the mail gateway reads a single message from the
529  standard input and submits the message to the roundup.mailgw module.
531 UNIX mailbox:
532  In the second case, the gateway reads all messages from the mail spool
533  file and submits each in turn to the roundup.mailgw module. The file is
534  emptied once all messages have been successfully handled. The file is
535  specified as::
537    mailbox /path/to/mailbox
539 POP:
540  In the third case, the gateway reads all messages from the POP server
541  specified and submits each in turn to the roundup.mailgw module. The
542  server is specified as::
544     pop username:password@server
546  The username and password may be omitted::
548     pop username@server
549     pop server
551  are both valid. The username and/or password will be prompted for if
552  not supplied on the command-line.
554 APOP:
555  Same as POP, but using Authenticated POP::
557     apop username:password@server
560 Command Line Tool
561 =================
563 The basic usage is::
565  Usage: roundup-admin [options] [<command> <arguments>]
567  Options:
568   -i instance home  -- specify the issue tracker "home directory" to administer
569   -u                -- the user[:password] to use for commands
570   -d                -- print full designators not just class id numbers
571   -c                -- when outputting lists of data, comma-separate them.
572                Same as '-S ","'.
573   -S <string>       -- when outputting lists of data, string-separate them
574   -s                -- when outputting lists of data, space-separate them.
575                Same as '-S " "'.
577   Only one of -s, -c or -S can be specified.
579  Help:
580   roundup-admin -h
581   roundup-admin help                       -- this help
582   roundup-admin help <command>             -- command-specific help
583   roundup-admin help all                   -- all available help
585  Commands: 
586   commit
587   create classname property=value ...
588   display designator[,designator]*
589   export [class[,class]] export_dir
590   find classname propname=value ...
591   get property designator[,designator]*
592   help topic
593   history designator
594   import import_dir
595   initialise [adminpw]
596   install [template [backend [admin password]]]
597   list classname [property]
598   pack period | date
599   reindex
600   retire designator[,designator]*
601   rollback
602   security [Role name]
603   set items property=value property=value ...
604   specification classname
605   table classname [property[,property]*]
606  Commands may be abbreviated as long as the abbreviation matches only one
607  command, e.g. l == li == lis == list.
610 All commands (except help) require a tracker specifier. This is just the
611 path to the roundup tracker you're working with. A roundup tracker is
612 where roundup keeps the database and configuration file that defines an
613 issue tracker. It may be thought of as the issue tracker's "home
614 directory". It may be specified in the environment variable
615 ``TRACKER_HOME`` or on the command line as "``-i tracker``".
617 A designator is a classname and an itemid concatenated, eg. bug1,
618 user10, ... Property values are represented as strings in command
619 arguments and in the printed results:
621 - Strings are, well, strings.
622 - Password values will display as their encoded value.
623 - Date values are printed in the full date format in the local time
624   zone, and accepted in the full format or any of the partial formats
625   explained below.::
626   
627     Input of...        Means...
628     "2000-04-17.03:45" 2000-04-17.03:45:00
629     "2000-04-17"       2000-04-17.00:00:00
630     "01-25"            yyyy-01-25.00:00:00
631     "08-13.22:13"      yyyy-08-13.22:13:00
632     "11-07.09:32:43"   yyyy-11-07.09:32:43
633     "14:25"            yyyy-mm-dd.14:25:00
634     "8:47:11"          yyyy-mm-dd.08:47:11
635     "2003"             2003-01-01.00:00:00
636     "2003-04"          2003-04-01.00:00:00
637     "."                "right now"
638     
639 - Link values are printed as item designators. When given as an
640   argument, item designators and key strings are both accepted.
641 - Multilink values are printed as lists of item designators joined by
642   commas. When given as an argument, item designators and key strings
643   are both accepted; an empty string, a single item, or a list of items
644   joined by commas is accepted.
645   
646 When multiple items are specified to the roundup get or roundup set
647 commands, the specified properties are retrieved or set on all the
648 listed items.  When multiple results are returned by the roundup get or
649 roundup find commands, they are printed one per line (default) or joined
650 by commas (with the "``-c``" option).
652 Where the command changes data, a login name/password is required. The
653 login may be specified as either "``name``" or "``name:password``".
655 - ``ROUNDUP_LOGIN`` environment variable
656 - the "``-u``" command-line option
658 If either the name or password is not supplied, they are obtained from
659 the command-line.
662 Using with the shell
663 --------------------
665 With version 0.6.0 or newer of roundup which supports: multiple
666 designators to display and the -d, -S and -s flags.
668 To find all messages regarding chatting issues that contain the word
669 "spam", for example, you could execute the following command from the
670 directory where the database dumps its files::
672     shell% for issue in `roundup-admin -ds find issue status=chatting`; do
673     > grep -l spam `roundup-admin -ds ' ' get messages $issue`
674     > done
675     msg23
676     msg49
677     msg50
678     msg61
679     shell%
681 Or, using the -dc option, this can be written as a single command::
683     shell% grep -l spam `roundup get messages \
684         \`roundup -dc find issue status=chatting\``
685     msg23
686     msg49
687     msg50
688     msg61
689     shell%
691 You can also display issue contents::
693     shell% roundup-admin display `roundup-admin -dc get messages \
694                issue3,issue1`
695     files: []
696     inreplyto: None
697     recipients: []
698     author: 1
699     date: 2003-02-16.21:23:03
700     messageid: None
701     summary: jkdskldjf
702     files: []
703     inreplyto: None
704     recipients: []
705     author: 1
706     date: 2003-02-15.01:59:11
707     messageid: None
708     summary: jlkfjadsf    
709     
710 or status::
712     shell% roundup-admin get name `/tools/roundup/bin/roundup-admin \
713           -dc -i /var/roundup/sysadmin get status issue3,issue1`
714     unread
715     deferred
717 or status on a single line::
719     shell% echo `roundup-admin get name \`/tools/roundup/bin/roundup-admin \
720              -dc -i /var/roundup/sysadmin get status issue3,issue1\``
721     unread deferred
723 which is the same as::
725     shell% roundup-admin -s get name `/tools/roundup/bin/roundup-admin \
726              -dc -i /var/roundup/sysadmin get status issue3,issue1`
727     unread deferred
729 Also the tautological::
731    shell% roundup-admin get name \
732       `roundup-admin -dc get status \`roundup-admin -dc find issue \
733           status=chatting\``
734    chatting
735    chatting
737 Remember the roundup commands that accept multiple designators accept
738 them ',' separated so using '-dc' is almost always required.
740 -----------------
742 Back to `Table of Contents`_
744 .. _`Table of Contents`: index.html
745 .. _`customisation documentation`: customizing.html