Hi all
We are writing a behaviours recently. We want to implement different question types and the user can see different option values in the custom fields. However, I found that my code did not work. Did I not get the correct issuetype? Our code is as follows
def field = getFieldById(getFieldChanged())
def department = getFieldByName("Department")
def value = field.getValue()
if (value == 'story'){
department.setFieldOptions(['SW','HW'])
}else{
department.setFieldOptions(['SW','HW','RF'])
}