Changes between Version 13 and Version 14 of TracWorkflow


Ignore:
Timestamp:
May 22, 2020, 2:41:47 PM (4 years ago)
Author:
trac
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • TracWorkflow

    v13 v14  
    5656== Additional Ticket Workflows
    5757
    58 There are example workflows provided in the Trac source tree, see [trac:source:trunk/contrib/workflow 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. However, if you have existing tickets then there may be issues if those tickets have states that are not in the new workflow.
     58There are example workflows provided in the Trac source tree, see [trac:source:branches/1.0-stable/contrib/workflow 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. However, if you have existing tickets then there may be issues if those tickets have states that are not in the new workflow.
    5959
    6060Here are some [trac:WorkFlow/Examples diagrams] of the above examples.
     
    172172=== How to combine the `tracopt.ticket.commit_updater` with the testing workflow
    173173
    174 The [[trac:source:trunk/tracopt/ticket/commit_updater.py|tracopt.ticket.commit_updater]] is the optional component that [[TracRepositoryAdmin#trac-post-commit-hook|replaces the old trac-post-commit-hook]], in Trac 0.12.
     174The [[trac:source:branches/1.0-stable/tracopt/ticket/commit_updater.py|tracopt.ticket.commit_updater]] is the optional component that [[TracRepositoryAdmin#trac-post-commit-hook|replaces the old trac-post-commit-hook]], in Trac 0.12.
    175175
    176176By default it reacts on some keywords found in changeset message logs like ''close'', ''fix'' etc. and performs the corresponding workflow action.
     
    205205reassign_reviewing = reviewing -> *
    206206reassign_reviewing.name = reassign review
    207 reassign_reviewing.operations = set_owner
     207reassign_reviewing.operations = set_owner, leave_status
    208208reassign_reviewing.permissions = TICKET_MODIFY
    209209}}}
     
    232232review.permissions = TICKET_MODIFY
    233233reassign_reviewing = reviewing -> *
    234 reassign_reviewing.operations = set_owner
     234reassign_reviewing.operations = set_owner, leave_status
    235235reassign_reviewing.name = reassign review
    236236reassign_reviewing.permissions = TICKET_MODIFY
     
    255255== Advanced Ticket Workflow Customization
    256256
    257 If the customizations above do not meet your needs, you can extend the workflow with plugins. 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 [trac:source:trunk/sample-plugins/workflow sample-plugins/workflow] for a few examples to get started.
     257If the customizations above do not meet your needs, you can extend the workflow with plugins. 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 [trac:source:branches/1.0-stable/sample-plugins/workflow sample-plugins/workflow] for a few examples to get started.
    258258
    259259But if even that is not enough, you can disable the !ConfigurableTicketWorkflow component and create a plugin that completely replaces it.