group issues by departments