Edgewall Software

Changes between Version 60 and Version 64 of TracWorkflow


Ignore:
Timestamp:
(multiple changes)
Author:
(multiple changes)
Comment:
(multiple changes)

Legend:

Unmodified
Added
Removed
Modified
  • TracWorkflow

    v60 v64  
    11= The Trac Ticket Workflow System =
     2[[PageOutline(2-5,Contents,pullout)]]
    23[[TracGuideToc]]
    3 
    44The Trac ticket system provides a configurable workflow.
    55
     
    9393}}}
    9494- **leave_status** -- Displays "leave as <current status>" and makes no change to the ticket.
     95- **reset_workflow** -- Resets the status of tickets that are in states no longer defined.
    9596'''Note:''' Specifying conflicting operations (such as `set_owner` and `del_owner`) has unspecified results.
    9697
     
    114115
    115116There 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.
     117
     118The special `_reset` action is added by default for tickets that are in states that are no longer defined. This allows tickets to be individually "repaired" after the workflow is changed, although it's recommended that the administrator perform the action by batch modifying the affected tickets. By default the `_reset` action is available to users with the `TICKET_ADMIN` permission and reset tickets are put in the //new// state. The default `_reset` action is equivalent to the following `[ticket-workflow]` action definition:
     119{{{#!ini
     120_reset = -> new
     121_reset.name = reset
     122_reset.operations = reset_workflow
     123_reset.permissions = TICKET_ADMIN
     124_reset.default = 0
     125}}}
     126
     127Since [trac:milestone:1.0.3] the `_reset` action can be customized by redefining the implicit action. For example, to allow anyone with `TICKET_MODIFY` to perform the `_reset` action, the workflow action would need to be defined:
     128{{{#!ini
     129_reset = -> new
     130_reset.name = reset
     131_reset.operations = reset_workflow
     132_reset.permissions = TICKET_MODIFY
     133_reset.default = 0
     134}}}
     135
     136== Workflow Visualization
    116137
    117138Workflows can be visualized by rendering them on the wiki using the [WikiMacros#Workflow-macro Workflow macro].