Script runner field validator

Gunawan Kosasih
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 26, 2025

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:

Screenshot 2025-02-27 at 10.01.02.png

 

 

However, I'm encountering a few questions:

  1. Is this the most efficient and correct way to implement this logic in Jira Cloud using ScriptRunner Behaviors?
  2. Are there any potential edge cases or issues I should be aware of?
  3. Are there any alternative approaches (e.g., using workflow validators) that might be more suitable?
  4. Are there any performance consideration to be aware of?

Any guidance or examples would be greatly appreciated!

Thanks in advance

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events