Changes between Version 22 and Version 23 of AdvancedTicketWorkflowPlugin
- Timestamp:
- Jul 31, 2012, 6:13:40 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AdvancedTicketWorkflowPlugin
v22 v23 34 34 Enable the plugin with: 35 35 {{{ 36 #!ini 36 37 [components] 37 38 advancedworkflow.* = enabled … … 41 42 Add the individual controller to the workflow controller list: 42 43 {{{ 44 #!ini 43 45 [ticket] 44 46 workflow = ConfigurableTicketWorkflow,TicketWorkflowOpOwnerReporter … … 48 50 And use the operation in your custom workflow: 49 51 {{{ 52 #!ini 50 53 [ticket-workflow] 51 54 needinfo = * -> needinfo … … 59 62 Sets the owner to the ticket reporter. 60 63 {{{ 64 #!ini 61 65 <someaction>.operations = set_owner_to_reporter 62 66 }}} … … 64 68 Sets the owner to the ticket's component owner. 65 69 {{{ 70 #!ini 66 71 <someaction>.operations = set_owner_to_component_owner 67 72 }}} … … 69 74 Sets the owner to the value of a ticket field. 70 75 {{{ 76 #!ini 71 77 <someaction>.operations = set_owner_to_field 72 78 <someaction>.set_owner_to_field = mycustomfield … … 75 81 Sets the owner to the previous owner. If there is no previous owner, the owner will be deleted. 76 82 {{{ 83 #!ini 77 84 <someaction>.operations = set_owner_to_previous 78 85 }}} … … 80 87 Sets the status to the previous status. If there is no previous status, this is a no-op. 81 88 {{{ 89 #!ini 82 90 <someaction>.operations = set_status_to_previous 83 91 }}} … … 85 93 Will reset the milestone of a ticket if the milestone has been completed. This is useful for "reopen" actions. 86 94 {{{ 95 #!ini 87 96 <someaction>.operations = reset_milestone 88 97 }}} … … 90 99 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.''' 91 100 {{{ 101 #!ini 92 102 <someaction>.operations = run_external 93 103 <someaction>.run_external = Hint to tell the user. … … 96 106 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. 97 107 {{{ 108 #!ini 98 109 <someaction> = somestatus -> * 99 110 <someaction>.operations = triage … … 104 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. 105 116 {{{ 117 #!ini 106 118 accept = new -> * 107 119 accept.name = Accept ticket into workflow … … 129 141 Note that the implementation of this operation is not robust. 130 142 {{{ 143 #!ini 131 144 ;displays as "close as duplicate [_________]" 132 145 dup = * -> closed