Hello,
I would like to make 'environment platform' field (Text Field type) a mandatory field, only if 'Patch type' field (Select List (single choice) type) = 'X'.
How can I do it? Behaviours?
Thanks,
Daniel
HI @Dan27
Please have a look at the below previous discussions.
https://community.atlassian.com/t5/Jira-questions/Required-field-and-condition/qaq-p/752807
Hi @Yogesh Mude ,
I wrote the behaviour with thosr links help:
def selectCFValue = getFieldByName("Patch Type")
def targetField = getFieldByName("Environment/ Platform")
if (selectCFValue.getValue() == "GA Point Patch" || selectCFValue.getValue() == "GA Cumulative Patch")
targetField.setRequired(true)
else
targetField.setRequired(false)
It is still not working, Maybe I should choose an option there? Can you help me with it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.