Changes between Initial Version and Version 10 of Ticket #5866
- Timestamp:
- May 17, 2017, 5:44:52 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #5866
- Property Cc added
- Property Owner removed
- Property Keywords patch added
- Property Milestone → unscheduled
-
Ticket #5866 – Description
initial v10 1 I found myself wanting things like this in my [ticket-workflow]:1 I found myself wanting things like this in my `[ticket-workflow]`: 2 2 3 {{{ 3 {{{#!ini 4 4 reassign = * -> * 5 5 reassign.operations = set_owner,leave_status … … 18 18 wanted to be able to do this instead: 19 19 20 {{{ 20 {{{#!ini 21 21 needinfo = *,!needinfo -> needinfo 22 22 needinfo.name = need info … … 25 25 }}} 26 26 27 This would indicate that the "needinfo" state was a valid next state from every other state ''except'' "needinfo". To make this work, make the following tweak to /trac/ticket/default_workflow.py(line 161):27 This would indicate that the "needinfo" state was a valid next state from every other state ''except'' "needinfo". To make this work, make the following tweak to `/trac/ticket/default_workflow.py` (line 161): 28 28 29 {{{ 29 {{{#!python 30 30 if oldstates == ['*'] or status in oldstates: 31 31 }}} … … 33 33 ...becomes... 34 34 35 {{{ 35 {{{#!python 36 36 if ('*' in oldstates or status in oldstates) and ("!%s"%status not in oldstates): 37 37 }}} 38 38 39 40 39 I haven't tested this extensively, and even though it should be backwards-compatible... use with extra initial scrutiny.