Changes between Version 4 and Version 5 of 1.1/TracWorkflow
- Timestamp:
- Nov 28, 2014, 11:08:10 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
1.1/TracWorkflow
v4 v5 61 61 {{{ 62 62 resolve_new = new -> closed 63 resolve_new. name= resolve63 resolve_new.label = resolve 64 64 resolve_new.operations = set_resolution 65 65 resolve_new.permissions = TICKET_MODIFY … … 71 71 {{{ 72 72 resolve_accepted = accepted -> closed 73 resolve_accepted. name= resolve73 resolve_accepted.label = resolve 74 74 resolve_accepted.permissions = TICKET_MODIFY 75 75 resolve_accepted.operations = set_resolution 76 76 }}} 77 77 78 In this example, we see the `. name` attribute used. The action here is `resolve_accepted`, but it will be presented to the user as `resolve`.78 In this example, we see the `.label` attribute used. The action here is `resolve_accepted`, but it will be presented to the user as `resolve`. The `.label` attribute is new in Trac 1.1.3 and is functionally the same as the `.name` attribute, which is now deprecated. If neither `.label` or `.name` is specified, the action will be presented to the user as //resolve accepted//, the underscores having been replaced by whitespace (//Since 1.1.3//). 79 79 80 80 For actions that should be available in all states, `*` may be used in place of the state. The obvious example is the `leave` action: … … 110 110 {{{ 111 111 testing = new,accepted,needs_work,assigned,reopened -> testing 112 testing. name= Submit to reporter for testing112 testing.label = Submit to reporter for testing 113 113 testing.permissions = TICKET_MODIFY 114 114 115 115 reject = testing -> needs_work 116 reject. name= Failed testing, return to developer116 reject.label = Failed testing, return to developer 117 117 118 118 pass = testing -> closed 119 pass. name= Passes Testing119 pass.label = Passes Testing 120 120 pass.operations = set_resolution 121 121 pass.set_resolution = fixed … … 156 156 {{{ 157 157 reassign_reviewing = reviewing -> * 158 reassign_reviewing. name= reassign review158 reassign_reviewing.label = reassign review 159 159 reassign_reviewing.operations = set_owner 160 160 reassign_reviewing.permissions = TICKET_MODIFY … … 185 185 reassign_reviewing = reviewing -> * 186 186 reassign_reviewing.operations = set_owner 187 reassign_reviewing. name= reassign review187 reassign_reviewing.label = reassign review 188 188 reassign_reviewing.permissions = TICKET_MODIFY 189 189 }}} … … 195 195 {{{ 196 196 resolve_new = new -> closed 197 resolve_new. name= resolve197 resolve_new.label = resolve 198 198 resolve_new.operations = set_resolution 199 199 resolve_new.permissions = TICKET_MODIFY