As within a time JIRA project roles get bigger than Admin expectations, I'm looking for a way to detect those project roles which are not used.
I see here two ways:
1. SQL - magic for me
2. rest api - /rest/api/2/project/{projKey}/role and then went trough each role to collect empty one
Did someone have had similar optimization task?