Edgewall Software

Changes between Initial Version and Version 10 of Ticket #5866


Ignore:
Timestamp:
May 17, 2017, 5:44:52 AM (7 years ago)
Author:
Ryan J Ollos
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5866

    • Property Cc jevans kace25_2000@… added
    • Property Owner Jonas Borgström removed
    • Property Keywords patch added
    • Property Milestoneunscheduled
  • Ticket #5866 – Description

    initial v10  
    1 I found myself wanting things like this in my [ticket-workflow]:
     1I found myself wanting things like this in my `[ticket-workflow]`:
    22
    3 {{{
     3{{{#!ini
    44reassign = * -> *
    55reassign.operations = set_owner,leave_status
     
    1818wanted to be able to do this instead:
    1919
    20 {{{
     20{{{#!ini
    2121needinfo = *,!needinfo -> needinfo
    2222needinfo.name = need info
     
    2525}}}
    2626 
    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):
     27This 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):
    2828
    29 {{{
     29{{{#!python
    3030 if oldstates == ['*'] or status in oldstates:
    3131}}}
     
    3333...becomes...
    3434
    35 {{{
     35{{{#!python
    3636 if ('*' in oldstates or status in oldstates) and ("!%s"%status not in oldstates):
    3737}}}
    3838 
    39 
    4039I haven't tested this extensively, and even though it should be backwards-compatible... use with extra initial scrutiny.