Hi, I have a requirement to make a custom field1 as "Mandatory" when other custom field2 value is filled/set. (This is done using scriptrunner(Behaviour)) but the problem I face here is when I delete/remove the value in customfield2, customfield1 is still mandatory :( I want to make the customfield1 as non-mandatory when I don't have values filled in customfield2
Hi @rahi bala
try something like this on your code, I will just put here the if-else statement
if (customfield2) {
customfield1.setRequired(true)
} else
customfield1.setRequired(false)
Regards,
Alvin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.