Edgewall Software

Changes between Version 5 and Version 6 of 1.1/TracWorkflow


Ignore:
Timestamp:
Dec 5, 2014, 2:45:18 AM (9 years ago)
Author:
Ryan J Ollos
Comment:

Document ticket create actions. Refs #2045.

Legend:

Unmodified
Added
Removed
Modified
  • 1.1/TracWorkflow

    v5 v6  
    22[[TracGuideToc]]
    33
    4 The Trac issue database provides a configurable workflow.
     4The Trac ticket workflow is configurable.
    55
    66== The Default Ticket Workflow ==
     
    1414leave.operations = leave_status
    1515leave.default = 1
     16
     17create = <none> -> new
     18create.default = 1
     19
     20create_and_assign = <none> -> assigned
     21create_and_assign.label = assign
     22create_and_assign.permissions = TICKET_MODIFY
     23create_and_assign.operations = may_set_owner
     24
    1625accept = new,assigned,accepted,reopened -> accepted
    1726accept.permissions = TICKET_MODIFY
    1827accept.operations = set_owner_to_self
     28
    1929resolve = new,assigned,accepted,reopened -> closed
    2030resolve.permissions = TICKET_MODIFY
    2131resolve.operations = set_resolution
     32
    2233reassign = new,assigned,accepted,reopened -> assigned
    2334reassign.permissions = TICKET_MODIFY
    2435reassign.operations = set_owner
     36
    2537reopen = closed -> reopened
    2638reopen.permissions = TICKET_CREATE
     
    3648== Basic Ticket Workflow Customization ==
    3749
    38 Note: Ticket "statuses" or "states" are not separately defined. The states a ticket can be in are automatically generated by the transitions defined in a workflow. Therefore, creating a new ticket state simply requires defining a state transition in the workflow that starts or ends with that state.
     50Note: Ticket "statuses" or "states" are not separately defined. The ticket states are automatically generated by the transitions defined in a workflow. Therefore, creating a new ticket state simply requires defining a state transition in the workflow that starts or ends with that state.
    3951
    4052Create a `[ticket-workflow]` section in `trac.ini`.
     
    8799If not specified for an action, `.default` is 0.  The value may be negative.
    88100
     101The ticket create actions are specified by a transition from the special `<none>` state. At least one create action must be available to the user in order for tickets to be created. The create actions defined in the default workflow are:
     102{{{#!ini
     103create = <none> -> new
     104create.default = 1
     105
     106create_and_assign = <none> -> assigned
     107create_and_assign.label = assign
     108create_and_assign.permissions = TICKET_MODIFY
     109create_and_assign.operations = may_set_owner
     110}}}
     111
     112
    89113There are a couple of hard-coded constraints to the workflow.  In particular, tickets are created with status `new`, and tickets are expected to have a `closed` state.  Further, the default reports/queries treat any state other than `closed` as an open state.
    90114
     
    165189{{{
    166190[ticket-workflow]
     191create = <none> -> new
     192create.default = 1
     193create_and_assign = <none> -> assigned
     194create_and_assign.label = assign
     195create_and_assign.permissions = TICKET_MODIFY
     196create_and_assign.operations = may_set_owner
    167197accept = new,reviewing -> assigned
    168198accept.operations = set_owner_to_self