I am working on Jasper Reports and my query uses SQL \'IN\' predicate.
SELECT customer_name AS NAME,
id_customer AS ID
FROM customer
WHERE cus
Jasper Report has a special variable $X for that:
select * from customer where $X{IN,customer_role,roles}
should work. See here and here.
To complement @Aaron response, you can configure a list parameter ("roles" in your case) within JasperSoft Studio as follows:
Jasper Report has a special variable $X for that:
select * from customer where $X{IN,customer_role,roles}