Hi Team,
I have requirment, based on one custome field another custome field need to show or hide,
I have a code which is working fine for Single select field, but when I applied the same for Multislect field its not working.
import com.onresolve.jira.groovy.user.FieldBehaviours
import groovy.transform.BaseScript
@BaseScript FieldBehaviours fieldBehaviours
log.warn("--- Start Behaviour ------------------------------------")
//partials Multiselect field
def Partial = getFieldById("customfield_14544")
log.warn("Partial = $Partial")
//Minor Text field
def Minor = getFieldById("customfield_14545")
log.warn("Minor = $Minor")
def PartialValue = Partial.getValue()
log.warn("Partial = $PartialValue")
if (PartialValue == "Others" ){
log.warn("Version set to hidden!")
Minor.setHidden(false)
Minor.setRequired(true)
}
else {
log.warn("Version set to hidden!")
Minor.setHidden(true)
}
log.warn("------------------------------------ End Behaviour ------")