Changes between Version 2 and Version 3 of TracWorkflow
- Timestamp:
- May 23, 2007, 10:07:55 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracWorkflow
v2 v3 5 5 6 6 == The Default Ticket Workflow == 7 If you do not configure a custom workflow, the default workflow is described in `contrib/workflow/original-workflow.ini`'''FIXME'''.7 If you do not configure a custom workflow, the default workflow is described in [source:trunk/contrib/workflow/original-workflow.ini contrib/workflow/original-workflow.ini] '''FIXME'''. 8 8 9 9 [[Image(original-workflow.png)]] 10 10 11 You will probably want to look at the additional ticket workflows available, and `contrib/workflow/simple.ini`in particular.11 You will probably want to look at the additional ticket workflows available, and [source:trunk/contrib/workflow/simple-workflow.ini contrib/workflow/simple-workflow.ini] in particular. 12 12 13 13 == Additional Ticket Workflows == 14 14 15 There are several example workflows provided in the Trac source tree; look in `contrib/workflow`for `.ini` config sections. One of those may be a good match for what you want.15 There are several example workflows provided in the Trac source tree; look in [source:trunk/contrib/workflow contrib/workflow] for `.ini` config sections. One of those may be a good match for what you want. 16 16 17 17 == Basic Ticket Workflow Customization == … … 19 19 Create a `[ticket-workflow]` section in `trac.ini`. 20 20 Within this section, each entry is an action that may be taken on a ticket. 21 For example, consider the `accept` action from `simple-workflow.ini`:21 For example, consider the `accept` action from [source:trunk/contrib/workflow/simple-workflow.ini simple-workflow.ini]: 22 22 {{{ 23 23 accept = new,accepted -> accepted … … 58 58 There 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. 59 59 60 While creating or modifying a ticket workfow, `contrib/workflow/workflow_parser.py`may be useful. It can create `.dot` files that [http://www.graphviz.org/ Graphviz] understands to provide a visual description of the workflow.60 While creating or modifying a ticket workfow, [source:trunk/contrib/workflow/workflow_parser.py contrib/workflow/workflow_parser.py] may be useful. It can create `.dot` files that [http://www.graphviz.org/ Graphviz] understands to provide a visual description of the workflow. 61 61 62 62 == Advanced Ticket Workflow Customization == 63 63 64 If the customization above is not extensive enough for your needs, you can extend the workflow using plugins. These plugins can provide additional operations for the workflow (like code_review), or implement side-effects for an action (such as triggering a build). Look at `sample-plugins/workflow`for a few simple examples to get started.64 If the customization above is not extensive enough for your needs, you can extend the workflow using plugins. These plugins can provide additional operations for the workflow (like code_review), or implement side-effects for an action (such as triggering a build). Look at [source:trunk/sample-plugins/workflow sample-plugins/workflow] for a few simple examples to get started. 65 65 66 66 But if even that is not enough, you can disable !DefaultTicketActionController, and create a plugin that completely replaces it.