Hello the community,
I have a little issue with behaviour with a multiselect customfield and I need your help.
To explain the case, When I create a ticket, I use a Multi select customfield and depending a value from the this cf, I need to show/required another customfield.
import com.onresolve.jira.groovy.user.FormField
import com.atlassian.jira.issue.*
import com.atlassian.jira.issue.fields.screen.*
import com.atlassian.jira.component.ComponentAccessor
import com.onresolve.scriptrunner.runner.util.UserMessageUtil
FormField QOPSubReason = getFieldById("customfield_17890")//QOP Sub-Reason
FormField Grades = getFieldById("customfield_10424")//Grades
if(getFieldById("customfield_17890").getValue().toString().contains("Isabel - 06-Allocation")){
Grades.setHidden(false)
Grades.setRequired(true)
}else{
Grades.setHidden(true)
Grades.setRequired(false)
}
But the behaviour does'nt work.
When I check selected value it appears as "NULL"

I suppose I need to put a loop or something like this to get every time I change the value from the multiselect
Thank you in advance