I am trying to create a confluence page that lists all project roles for all projects a specific project category, both users and groups using a MySQL query against the Jira database.
Searching similar threads and copy pasting some stuff together got me this far:
SELECT pkey, p.pname, pr.NAME, u.display_name FROM projectroleactor pra INNER JOIN projectrole pr ON pr.ID = pra.PROJECTROLEID INNER JOIN project p ON p.ID = pra.PID INNER JOIN app_user au ON au.lower_user_name = pra.ROLETYPEPARAMETER INNER JOIN cwd_user u ON u.user_name = au.user_key where pr.NAME in ('Administrators','Developers') order by pkey,NAME;However this only shows the users, and seems to exclude if a (ad)group is added to a role. Can someone with a bit stronger MySQL-fu help me to include both users, (members of) groups and the project category to this query?