Hi,
i want to count how many checkbox options are selected! I've already seen something like this:
def count = 0;
def test1 = cfValues['Checkbox Customfield']?.getValue() == 'Option1';
def test2 = cfValues['Checkbox Customfield']?.getValue() == 'Option2';
if(test){
count++;
}
if(test2){
count++;
} However, this code does not work! Does anyone has another idea how it could work? Maybe in a less complicated way?
Best regards,
Louisa