Workflow editor statemachine: how to get rid of state name duplicates in a state list?

I've created a statemachine in Workflow Editor (source code is placed below). In result I've got duplicates in the States list on the issue page.

2014-09-18 12_38_42-Allow suffix in internal search _ SRCH-10.png


Do you know how may I get rid of those duplicates in a brackets and have a clean list of states like:

  • Open
  • In progress
  • Ready for review
  • ...

State machine source code
statemachine State's lifecycle for field State {
 
    initialstate New {
      on Open [always] do {<define statements>} transit to Open 
      on Blocked [always] do {<define statements>} transit to Blocked 
      on Won't fix [always] do {<define statements>} transit to Won't fix 
      on Can't Reproduce [always] do {<define statements>} transit to Can't Reproduce 
      on Duplicate [always] do {<define statements>} transit to Duplicate 
      on Obsolete [always] do {<define statements>} transit to Obsolete 
      on In Progress [always] do {<define statements>} transit to In Progress
    }
     
    state Open {
      on In Progress [always] do {<define statements>} transit to In Progress 
      on Blocked [always] do {<define statements>} transit to Blocked 
      on Won't fix [always] do {<define statements>} transit to Won't fix 
      on Can't Reproduce [always] do {<define statements>} transit to Can't Reproduce 
      on Duplicate [always] do {<define statements>} transit to Duplicate 
      on Obsolete [always] do {<define statements>} transit to Obsolete
    }
     
    state In Progress {
      on Blocked [always] do {<define statements>} transit to Blocked 
      on Won't fix [always] do {<define statements>} transit to Won't fix 
      on Can't Reproduce [always] do {<define statements>} transit to Can't Reproduce 
      on Duplicate [always] do {<define statements>} transit to Duplicate 
      on Obsolete [always] do {<define statements>} transit to Obsolete 
      on Ready for review [always] do {<define statements>} transit to Ready for review 
      on Fixed [always] do {<define statements>} transit to Fixed
    }
     
    state Blocked {
      on Reopened [always] do {<define statements>} transit to Reopened
    }
     
    state Won't fix {
      on Reopened [always] do {<define statements>} transit to Reopened
    }
     
    state Can't Reproduce {
      on Reopened [always] do {<define statements>} transit to Reopened
    }
     
    state Duplicate {
      on Reopened [always] do {<define statements>} transit to Reopened
    }
     
    state Obsolete {
    on Reopened [always] do {<define statements>} transit to Reopened
    }
     
    state Reopened {
      on Blocked [always] do {<define statements>} transit to Blocked 
      on Won't fix [always] do {<define statements>} transit to Won't fix 
      on Can't Reproduce [always] do {<define statements>} transit to Can't Reproduce 
      on Duplicate [always] do {<define statements>} transit to Duplicate 
      on Obsolete [always] do {<define statements>} transit to Obsolete 
      on In Progress [always] do {<define statements>} transit to In Progress
    }
     
    state Ready for review {
      on Ready for test [always] do {<define statements>} transit to Ready for test 
      on Reopened [always] do {<define statements>} transit to Reopened
    }
     
    state Ready for test {
     on Ready for release [always] do {<define statements>} transit to Ready for release 
     on Reopened [always] do {<define statements>} transit to Reopened
    }
     
    state Ready for release {
     on Fixed [always] do {<define statements>} transit to Fixed 
     on Reopened [always] do {<define statements>} transit to Reopened
    }
     
    state Fixed {
     on Reopened [always] do {<define statements>} transit to Reopened
    } 
}
prettyPrint();
3 comments
Comment actions Permalink
It's not actually duplication - words in parentheses is a target state, out of parentheses - the event itself. E.g. you can use the 'block' event name that would transit to the state 'Blocked'.
0
Comment actions Permalink
Дмитрий, спасибо за объяснение и за быстрый ответ :)

Как я понял скрыть "target state" в скобках нельзя?

Не критичная проблема конечно. Я хотел их скрыть, чтобы список состояний выглядел так, как он выглядел по-умолчанию (без применения statemachine)

2014-09-18 13_42_17-Allow suffix in internal search _ SRCH-10.png

0
Comment actions Permalink
Все верно, к сожалению, список скрыть нельзя.
0

Please sign in to leave a comment.