8 | | With MultipleWorkflowPlugin trac can read the workflow based on the type of ticket that is considering. If a section for that ticket type doesn't exist than it uses the default workflow. |
| 8 | With MultipleWorkflowPlugin Trac can read the workflow based on the type of ticket. If a section for that ticket type doesn't exist than it uses the default workflow, see [#Example Example]. |
| 9 | |
| 10 | The plugin works with Trac 0.11 and 0.12 and maybe with Trac 1.x (not tested). |
| 11 | |
| 12 | See also TypedTicketWorkflowPlugin. |
| 13 | === What's the Difference to TypedTicketWorkflowPlugin? === |
| 14 | With MultipleWorkflowPlugin you may have an exclusive workflow section for each ticket type like this: |
| 15 | {{{#!ini |
| 16 | [ticket-workflow] |
| 17 | # Default workflow |
| 18 | approve = new, reopened -> approved |
| 19 | approve.operations = del_resolution |
| 20 | ... |
| 21 | |
| 22 | [ticket-workflow-Foo] |
| 23 | # Workflow for ticket type 'Foo' |
| 24 | do_foo = new -> foo |
| 25 | ... |
| 26 | |
| 27 | [ticket-workflow-Bar] |
| 28 | # Workflow for ticket type 'Bar' |
| 29 | do_bar = new -> bar |
| 30 | ... |
| 31 | }}} |
| 32 | |
| 33 | With TypedTicketWorkflowPlugin you specify restrictions for ticket types in the default workflow by adding them to the transitions like: |
| 34 | {{{#!ini |
| 35 | [ticket-workflow] |
| 36 | approve = new, reopened -> approved |
| 37 | approve.operations = del_resolution |
| 38 | # approve is only valid for ticket types 'defect' and 'feature' |
| 39 | approve.ticket_type = defect, feature |
| 40 | ... |
| 41 | }}} |
| 42 | |
| 43 | The former is easier to manage if you have several ticket types with vastly different workflows. |
| 44 | |