Availability of Moving issues on Agile board contradicts rules of state-machine defined in project worfflow

I define project state-machine in workflow describes rules to move issues between their states (state field)
statemachine Workflow for field State { 
 
  initial state New { 
    on Doing[always] do {<define statements>} transit to In Progress 
  } 
    
  state In Progress { 
    on Paused[always] do {<define statements>} transit to Open 
      
    on Done[always] do {<define statements>} transit to Fixed 
  } 
    
  state Open { 
    on  Doing[always] do {<define statements>} transit to In Progress 
  } 
    
  state Fixed { 
    on Reopen[always] do {<define statements>} transit to Open 
      
    on Verify[always] do {<define statements>} transit to Verified 
  } 
    
  state Verified { 
    enter { 
      message("Workflow for this issue is ended: issue is Verified"); 
    } 
  } 
 
}
prettyPrint();
And this workflow works well when I change issue`s states in issue form or in issue list.
But in Agile Board my workflow doesn`t work. I can move issues between columns as I want even this moving contradicts state-machine rules.

What happened? How I can create rules for moving issues on Agile Board?
2 comments
Comment actions Permalink
To workaround this bug I had to duplicate state-machine`s rules with other stateless rules ((

rule Support statemachine 
 
when State.changed { 
  assert !(State.oldValue == {Verified}): "This action is not supported by workflow"; 
  assert !(State == {In Progress} && State.oldValue != {New} && State.oldValue != {Open}): "This action is not supported by workflow"; 
  assert !(State == {Open} && State.oldValue != {Fixed} && State.oldValue != {In Progress}): "This action is not supported by workflow"; 
  assert !(State == {Fixed} && State.oldValue != {In Progress}): "This action is not supported by workflow"; 
  assert !(State == {Verified} && State.oldValue != {Fixed}): "This action is not supported by workflow"; 
  assert !(State == {New} && State.oldValue != {New}): "This action is not supported by  workflow"; 
}
prettyPrint();
0
Comment actions Permalink
Sorry for the delay.
It't the known problem, please vote for the http://youtrack.jetbrains.com/issue/JT-17188
0

Please sign in to leave a comment.