Add join to allow group by releases in issue view. See #919
Test for group by release in Issues view.