Report question

Question: How can I do a conditional collectEntries in groovy