Changes between Version 2 and Version 3 of TracWorkflow


Ignore:
Timestamp:
Dec 16, 2007, 9:52:56 PM (16 years ago)
Author:
trac
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • TracWorkflow

    v2 v3  
    2525== Additional Ticket Workflows ==
    2626
    27 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.
     27There 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. They can be pasted into the `[ticket-workflow]` section of your `trac.ini` file.
    2828
    2929== Basic Ticket Workflow Customization ==
     
    4949 - set_resolution -- Sets the resolution to the selected value.
    5050   - ''actionname''`.set_resolution` may optionally be set to a comma delimited list or a single value.
     51{{{
     52Example:
     53
     54resolve_new = new -> closed
     55resolve_new.name = resolve
     56resolve_new.operations = set_resolution
     57resolve_new.permissions = TICKET_MODIFY
     58resolve_new.set_resolution = invalid,wontfix
     59}}}
    5160 - leave_status -- Displays "leave as <current status>" and makes no change to the ticket.
    5261'''Note:''' Specifying conflicting operations (such as `set_owner` and `del_owner`) has unspecified results.
     
    7483While 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.
    7584
     85This can be done as follows (your install path may be different).
     86{{{
     87cd /var/local/trac_devel/contrib/workflow/
     88sudo ./showworkflow /srv/trac/PlannerSuite/conf/trac.ini
     89}}}
     90And then open up the resulting `trac.pdf` file created by the script (it will be in the same directory as the `trac.ini` file).
     91
     92After you have changed a workflow, you need to restart apache for the changes to take effect. This is important, because the changes will still show up when you run your script, but all the old workflow steps will still be there until the server is restarted.
     93
    7694== Advanced Ticket Workflow Customization ==
    7795
    78 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.
     96If 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) that may not be merely simple state changes.  Look at `sample-plugins/workflow` for a few simple examples to get started.
    7997
    8098But if even that is not enough, you can disable the !ConfigurableTicketWorkflow component and create a plugin that completely replaces it.
     99