State Machine targetState to any state

I have an alternative state machine that is supposed to be basically in free flow meaning that if the typeFieldName is set to Rework, I'd like to be able to transition the issue to any state.

alternativeMachines: {
'Rework': {
'Backlog': {
initial: true,
transitions: {}
} // If the order is marked for rework, then it can be freely moved around

An empty transition doesn't seem to work, neither does '*', and it won't let me not have an initial state.

Comment actions Permalink


I'm Sergey from the YouTrack team.

I'm afraid, there's no shortcut here. You need to specify all the transitions. If you plan to use it on a regular basis, then you can list them in a separate file (i.e. list all the transitions). Then you will be able to reference this file in your state machine rules. 


Please sign in to leave a comment.