Edgewall Software

Changes between Version 14 and Version 15 of TracWorkflow


Ignore:
Timestamp:
Apr 1, 2008, 1:08:20 AM (16 years ago)
Author:
eric256
Comment:

adding some more explicit examples

Legend:

Unmodified
Added
Removed
Modified
  • TracWorkflow

    v14 v15  
    9292After 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.
    9393
     94== Example: Adding optional Testing with Workflow ==
     95
     96By adding the following to your [ticket-workflow] section of trac.ini you get optional testing.  When the ticket is in new, accepted or needs_work status you can choose to submit it for testing.  When its in the testing status the user gets the option to reject it and send it back to needs_work, or pass the testing and send it along to closed.  If they accept it then it gets automatically marked as closed and the resolution is set to fixed.  Since all the old work flow remains a ticket can skip this entire section.
     97
     98{{{
     99testing = new,accepted,needs_work -> testing
     100testing.name = Submit to reporter for testing
     101testing.permissions = TICKET_MODIFY
     102reject = testing -> needs_work
     103reject.name = Failed testing, return to developer
     104pass = testing -> closed
     105pass.name = Passes Testing
     106pass.operations = set_resolution
     107pass.set_resolution = fixed
     108}}}
     109
     110== Example: Limit the resolution options for a new ticket ==
     111
     112The above resolve_new operation allows you to set the possible resolutions for a new ticket.  By modifyin the existing resolve action and removing the new status from before the -> we then get two resolve actions.  One with limited resolutions for new tickets, and then the regular one once a ticket is accepted.
     113
     114{{{
     115resolve_new = new -> closed
     116resolve_new.name = resolve
     117resolve_new.operations = set_resolution
     118resolve_new.permissions = TICKET_MODIFY
     119resolve_new.set_resolution = invalid,wontfix,duplicate
     120resolve = assigned,accepted,reopened -> closed
     121resolve.operations = set_resolution
     122resolve.permissions = TICKET_MODIFY
     123}}}
     124
    94125== Advanced Ticket Workflow Customization ==
    95126