Hello
I'm trying to make the systeme field Description mandatory when a certain custom field get a specific value. If not the case then not
The custom field name is "A catégoriser"
Here is the script I did
import com.atlassian.jira.issue.fields.DescriptionSystemField
import com.onresolve.jira.groovy.user.FieldBehaviours
import groovy.transform.BaseScript
//Apply Scriptrunner behaviour on select list field
def CustomField = getFieldById('customFieldId=11200') //select list field
def desc = getFieldByName('description') //multi-line text field
log.debug('customFieldId=11200' + CustomField.getValue())
if(CustomField.getValue() == "A catégoriser") {
DescriptionSystemField.setRequired(true)
} else {
DescriptionSystemField.setRequired(false)
}
But the script failed
Can somebody help me in that?
Best regards