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)
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?
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");
}
}
}
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?
Please sign in to leave a comment.
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"; }It't the known problem, please vote for the http://youtrack.jetbrains.com/issue/JT-17188