[% IF report.get_extra_metadata('grouped_ids') %] Your reference numbers
RBK-[% report.id %], RBK-[% report.get_extra_metadata('grouped_ids').join(', RBK-') %] [% ELSE %] Your reference number
RBK-[% report.id %] [% END %]