I am trying to edit a custom filed. but i can not do anything. it gives an error. i am using script runner for behaviours.
i have no problem editing other custom fields and even assigning aliases to them. but this field (cascading select) does not want to cooperate. i just need to set it to visible and invisible. please help.
const question=getFieldById("customfield_10689")//Is the issue related to specific components or process plans?
const title=getFieldById("customfield_10688")// title
const work_number_serial=getFieldById("customfield_10690")//work_order_number
//customfield_10691 how much time
//customfield_10687 process plan selection
work_number_serial.setVisible(false)
//getFieldById("customfield_10691").setVisible(false) //how much time
getFieldById("customfield_10687").setVisible(false)// process plan selection
if(getChangeField().getName() == question.getName()) {
if (question.getValue().value == "Yes"){
work_number_serial.setVisible(true)
title.setValue("is related")
}
else if (question.getValue().value == "No") {
title.setValue("not related")
}
else{
title.setValue("did not recognize an asnwer")
}
}
else {
work_number_serial.setValue("did not recognize the field")