Hello,
I'd like some assistance with creating a script so that I can use Scriptrunner as a 'validator' within a workflow transition to 'Done', where it parses the issue's subtasks to check if all of them are in a 'Done' state.
I'd also like to return an error message saying "Please ensure sub-tasks are complete before transitioning.", which I know can be done in the Validator side.
I am currently using the 'Condition' for sub-task state which currently works as a v1 fix, but we'd like to have that error message which seems to be reserved for 'Validators'.
I don't have much scripting experience, and could use some help with this please if it's possible!
Thank you,
Justin