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.
Please sign in to leave a comment.
Hi!
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.
Good
Hi,
was there any update on that? Is there a “*” wildcard option?
I would like to have the default state not restrict any transitions and only specify transitions for one issue Type.
Hi Bartlomiej Paczek, there have been no updates to state-machine workflow rules recently. You may find this request relevant: JT-69078. Feel free to give it a vote, and doing so will also subscribe you to updates in this issue.