I'm using Script Runner on Jira 6.17 to write a Validator script.
Validation works fine, except when the field I validate against has been changed on the transition screen.Then I still get the old value of the field.
I use issueManager.getIssueObject(issue.id).getCustomFieldValue("Custom field name") to get the field i want to validate, but this field has not been updated with the users change on the transition screen. Im guessing that it is because the value is updated during the post function phase of the transition.
How do I get the value of the field that is on the transition screen?