Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

behavior. error when targeting "cascading selection" custom field.

Ramez Kaupak August 29, 2023

i only have a problem with cascading choise filed. if you look at my code. i do the same thing for textual fields with no issues. but when i try to make my cascading selection field invisible i cant.  

Why is that? what can i do?image.png

 

const question=getFieldById("customfield_10689");//Is the issue related to specific components or process plans?
const work_number_serial=getFieldById("customfield_10693");//work_order_number
const how_much_time=getFieldById("customfield_10692");//How much time in delays has this issue caused or would have caused?
const options = getFieldById("customfield_10695");
const process_plan = getFieldById("customfield_10687");
const summary=getFieldById("summary");

if(getChangeField().getName() == question.getName()) {
    if (question.getValue().value == "Yes"){
        work_number_serial.setVisible(true)
        how_much_time.setVisible(true)
        options.setVisible(true)
    }
    else if (question.getValue().value == "No") {
        summary.setValue("2")
        work_number_serial.setVisible(false)
        how_much_time.setVisible(false)
        options.setVisible(false)
   
    }
    else{}
}

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events