Changes between Version 17 and Version 18 of MultipleWorkflowPlugin


Ignore:
Timestamp:
May 2, 2015, 10:24:05 AM (9 years ago)
Author:
Cinc-th
Comment:

Enhanced the description.

Legend:

Unmodified
Added
Removed
Modified
  • MultipleWorkflowPlugin

    v17 v18  
    44== Description
    55
    6 The MultipleWorkflowPlugin replaces the !ConfigurableTicketPlugin used by trac to control what actions a ticket can do reading `[ticket-workflow]` session.
     6The MultipleWorkflowPlugin replaces the !ConfigurableTicketPlugin used by Trac to control what actions a ticket can do reading `[ticket-workflow]` section.
    77
    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.
     8With 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
     10The plugin works with Trac 0.11 and 0.12 and maybe with Trac 1.x (not tested).
     11
     12See also TypedTicketWorkflowPlugin.
     13=== What's the Difference to TypedTicketWorkflowPlugin? ===
     14With MultipleWorkflowPlugin you may have an exclusive workflow section for each ticket type like this:
     15{{{#!ini
     16[ticket-workflow]
     17# Default workflow
     18approve = new, reopened -> approved
     19approve.operations = del_resolution
     20 ...
     21
     22[ticket-workflow-Foo]
     23# Workflow for ticket type 'Foo'
     24do_foo = new -> foo
     25 ...
     26
     27[ticket-workflow-Bar]
     28# Workflow for ticket type 'Bar'
     29do_bar = new -> bar
     30 ...
     31}}}
     32
     33With TypedTicketWorkflowPlugin you specify restrictions for ticket types in the default workflow by adding them to the transitions like:
     34{{{#!ini
     35[ticket-workflow]
     36approve = new, reopened -> approved
     37approve.operations = del_resolution
     38# approve is only valid for ticket types 'defect' and 'feature'
     39approve.ticket_type = defect, feature
     40 ...
     41}}}
     42
     43The former is easier to manage if you have several ticket types with vastly different workflows.
     44
    945
    1046== Bugs/Feature Requests