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/Marketplace-Apps-questions/Custom-field-mandatory-based-on-another-field-on-create-issue/qaq-p/396419
https://community.atlassian.com/t5/Jira-questions/How-to-make-a-Field-Required-Based-Off-Value-of-Another-Field/qaq-p/808196
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)elsetargetField.setRequired(false)
It is still not working, Maybe I should choose an option there? Can you help me with it?
It looks like you're new here. Sign in or register to get started.