Hi everyone,
The setup of the project is that we will have a task, with multiple subtask, all with a "phase number" (custom number field). I want to be able to set a condition that a subtask can't be set to In Progress before the previous phase has been done.
- If current ticket is the lowest phase (1) -> Transition OK
- If current ticket is NOT the lowest phase, but phase-1 is done -> Transition OK
- If current ticket is NOT the lowest phase and phase-1 is NOT done -> Block transition
Any ideas on how this can be done with scriptrunner in the workflow?