I want to ensure that all issues of a given issue type are created via the Portal.
I have Cloud ScriptRunner and have written a Workflow Validator as follows:
(issue.properties['request.channel.type']['value'] == 'portal') ? true : false
I have successfully tested this against existing issues. However, when I add this condition to the Create transition, it always returns false. If I change the if condition from 'portal' to null, then it still returns false.
Am I doing something wrong? Are there any alternatives?