Forums

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

Second level in Select List (cascading) not Required

李小龙 June 12, 2023

In the Select List (cascading) in JIRA8.18, I set the required field, only the first level is required, but in the latest version 9.8, the field is set to be required, and now the second level is also required. Fill in, but I don't want to leave the second level blank, is there a way?

1 answer

0 votes
Dave Mathijs
Community Champion
June 12, 2023

@李小龙 You could add a value 'None' to the second level.

yueping tian June 19, 2023

@Dave Mathijs  I am just the opposite,  the Select List (cascading) in JIRA8.20.11, I set required for "Default Cause" , only the first level is required, I also need the second level is also required. does scriptrunner can do this? Thanks?

李小龙 June 26, 2023

Yes, it can be implemented in Behaviour. Here's a reference for you


def productModule = getFieldById("customfield_10402")
def productModuleVal = productModule?.getValue();
def pmValue = 0;
for(def it in productModuleVal){
    pmValue ++;
}
if(pmValue==2){
    productModule.clearError();
}
else{
    productModule.setError("tips:....");
}
yueping tian June 26, 2023

thanks, are you manage jira ? may be we can leave a contact information and communicate together later?

Suggest an answer

Log in or Sign up to answer