Changes between Version 27 and Version 28 of AdvancedTicketWorkflowPlugin
- Timestamp:
- Sep 17, 2015, 8:17:03 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AdvancedTicketWorkflowPlugin
v27 v28 1 1 [[PageOutline(2-5,Contents,pullout)]] 2 2 3 = Advanced Ticket Workflow Plugin 3 4 4 5 == Description 5 6 6 AdvancedTicketWorkflowPlugin provides a number of advanced operations for customizable workflows that are similar to the operations provided inthe customizeable workflow of the core system.7 This plugin provides a number of advanced operations for customizable workflows that are similar to the operations as part of the customizeable workflow of the core system. 7 8 8 9 Currently provided operations are: … … 17 18 * xref 18 19 19 File requests for additional operations as enhancement tickets.20 21 20 == Bugs/Feature Requests 22 21 … … 24 23 25 24 If you have any issues, create a 26 [/newticket?component=AdvancedTicketWorkflowPlugin&owner=retracile new ticket]. 25 [/newticket?component=AdvancedTicketWorkflowPlugin&owner=retracile new ticket]. File requests for additional operations as enhancement tickets. 27 26 28 27 [[TicketQuery(component=AdvancedTicketWorkflowPlugin&group=type,format=progress)]] 29 28 30 == Download and Source29 == Download 31 30 32 Download the [download:advancedticketworkflowplugin zipped source], check out [/svn/advancedticketworkflowplugin using Subversion], or [source:advancedticketworkflowplugin browse the source] with Trac. 31 Download the [download:advancedticketworkflowplugin zipped source]. 32 33 == Source 34 35 Check out [/svn/advancedticketworkflowplugin using Subversion], or [source:advancedticketworkflowplugin browse the source] with Trac. 33 36 34 37 == Installation … … 40 43 and copy the `.egg` file from the `dist` directory to your Trac environment's `plugins` directory. 41 44 42 Then enable the plugin with:45 Then enable the plugin in your `trac.ini` file with: 43 46 {{{#!ini 44 47 [components] … … 64 67 == Configuration 65 68 66 * set_owner_to_reporter 69 * set_owner_to_reporter (!TicketWorkflowOpOwnerReporter) 67 70 Sets the owner to the ticket reporter. 68 71 {{{#!ini 69 72 <someaction>.operations = set_owner_to_reporter 70 73 }}} 71 * set_owner_to_component_owner 74 * set_owner_to_component_owner (!TicketWorkflowOpOwnerComponent) 72 75 Sets the owner to the ticket's component owner. 73 76 {{{#!ini 74 77 <someaction>.operations = set_owner_to_component_owner 75 78 }}} 76 * set_owner_to_field 79 * set_owner_to_field (!TicketWorkflowOpOwnerField) 77 80 Sets the owner to the value of a ticket field. 78 81 {{{#!ini … … 80 83 <someaction>.set_owner_to_field = mycustomfield 81 84 }}} 82 * set_owner_to_previous 83 Sets the owner to the previous owner. 85 * set_owner_to_previous (!TicketWorkflowOpOwnerPrevious) 86 Sets the owner to the previous owner. If there is no previous owner, the owner will be deleted. 84 87 {{{#!ini 85 88 <someaction>.operations = set_owner_to_previous 86 89 }}} 87 * set_status_to_previous 88 Sets the status to the previous status. 90 * set_status_to_previous (!TicketWorkflowOpStatusPrevious) 91 Sets the status to the previous status. If there is no previous status, this is a no-op. 89 92 {{{#!ini 90 93 <someaction>.operations = set_status_to_previous 91 94 }}} 92 95 * reset_milestone (!TicketWorkflowOpResetMilestone) 93 Will reset the milestone of a ticket if the milestone has been completed. 96 Will reset the milestone of a ticket if the milestone has been completed. This is useful for "reopen" actions. 94 97 {{{#!ini 95 98 <someaction>.operations = reset_milestone 96 99 }}} 97 100 * run_external (!TicketWorkflowOpRunExternal) 98 Runs an external script `<tracenv>/hooks/<someaction>` passing the ticket number and the username as parameters. 101 Runs an external script `<tracenv>/hooks/<someaction>` passing the ticket number and the username as parameters. '''Security warning: If you have account registration available, your hook script ''must'' treat the username as user input.''' 99 102 {{{#!ini 100 103 <someaction>.operations = run_external … … 102 105 }}} 103 106 * triage (!TicketWorkflowOpTriage) 104 Sets the next status based on mapping the value of a field to a status value. For example, this can be used for a "triage" action that splits a workflow based on the ticket type.107 Sets the next status based on mapping the value of a field to a status value. For example, this can be used for a "triage" action that splits a workflow based on the ticket type: 105 108 {{{#!ini 106 109 <someaction> = somestatus -> * … … 110 113 }}} 111 114 112 The most common request is to use a different workflow based on the ticket type. Let's simplify that case slightly for the sake of this example and assume that there are only two ticket types, `defect` and `enhancement`. We'll say that `defect`s require a `qa` step, but `enhancement`s do not.115 The most common request is to use a different workflow based on the ticket type. Let's simplify that case slightly for the sake of this example and assume that there are only two ticket types, `defect` and `enhancement`. We'll say that `defect`s require a `qa` step, but `enhancement`s do not: 113 116 {{{#!ini 114 117 accept = new -> * … … 131 134 132 135 * xref (TicketWorkflowOpXRef) 133 Adds a comment to the ticket specified in the text field. Enter either the bare ticket number or '#' + ticket number. The format of the comment to be added to the other ticket is given as a python string with a single `%s` in it.That format string defaults to `'Ticket %s is related to this ticket'`.136 Adds a comment to the ticket specified in the text field. Enter either the bare ticket number or '#' + ticket number. The format of the comment to be added to the other ticket is given as a Python string with a single `%s` in it. That format string defaults to `'Ticket %s is related to this ticket'`. 134 137 135 Also adds a comment to the local ticket. The format of the comment for the local ticket can be specified with `.xref_local`; it defaults to `'Ticket %s was marked as related to this ticket'`.This functionality can be disabled by setting `.xref_local` to an empty value.138 Also adds a comment to the local ticket. The format of the comment for the local ticket can be specified with `.xref_local`; it defaults to `'Ticket %s was marked as related to this ticket'`. This functionality can be disabled by setting `.xref_local` to an empty value. 136 139 137 140 Note that the implementation of this operation is not robust.