adding the functions to group the events by issue and getting only the labeled events