Hi everyone,
I'm working with ScriptRunner Behaviors in Jira Cloud and need help implementing a field dependency. Specifically, I want to make the 'App Version IOS' field mandatory when the 'Platform' field is set to 'IOS', and make the 'App Version Android' field mandatory when the 'Platform' field is set to 'Android'.
I've tried using the following Groovy script within a Behavior's validator:

However, I'm encountering a few questions:
- Is this the most efficient and correct way to implement this logic in Jira Cloud using ScriptRunner Behaviors?
- Are there any potential edge cases or issues I should be aware of?
- Are there any alternative approaches (e.g., using workflow validators) that might be more suitable?
- Are there any performance consideration to be aware of?
Any guidance or examples would be greatly appreciated!
Thanks in advance