Using the example workflow, I am trying to setup a validator.
- The example starts with 3 status: To Do, In Progress and Done.
- Between To Do and Done, I edited the transition to add a validator.
- I chose "Insight Validators".
- I chose "Run a Groovy script".
- For the error message I typed "Banned".
- For the script, I typed: "return false;".
- I published the changes.
I expect this validator to make all transition from To Do to Done impossible. Then I go to an issue at "To Do", and click "Done" button... but it failed to block the action. The issue changed from "To Do" to "Done" successfully.
I tried setting the field ID to "status" and changing the script to return error message, "return "Banned";", but it also doesn't work.
What am I missing?