def mom_var= getFieldById("customfield_10109").getValue()
if( (mom_var =="it/634ed4a7-315d-4d41-80f1-9f3bf5657791,11100,11405,true"))
{
getFieldByName("Operatin System").setHidden(false)
getFieldByName("Operatin System").setRequired(true)
}
else
{
getFieldByName("Operatin System").setHidden(true)
getFieldByName("Operatin System").setRequired(false)
}
I had try this with "getfieldByID" but it doesn't work either.
Hey @ebrahim rezaian
You have mentioned Jira Cloud, and this piece of code you are trying to add in Behaviors ?
is this if( (mom_var =="it/634ed4a7-315d-4d41-80f1-9f3bf5657791,11100,11405,true")) all one value you are trying to compare or multiple values ?
Regards,
Vishwas
yes
it is the only value
it works with other type of fields except cascading fields.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.