I'm trying to write a ScriptRunner Validator script that throws an error when the user did not link the issue (Defect) to a parent (Story) during the Create action.
I can't find a way to access the fields of the issue because at that point it's not stored in the database yet. How do I do that?
I know it can be done using a Behaviour, but in this case I'd like to use a Validator.