Changes determining latest issue to manual query, instead of repository since we want a different
logic