'List an Issue\'s Events
This endpoint lists an issue\'s events.
:pparam string issue_id: the ID of the issue to retrieve.
:auth: required'

@attach_scenarios([list_available_samples_scenario])
def get(self, request, group):

    events = Event.objects.filter(group_id=group.id)
    query = request.GET.get('query')
    if query:
        try:
            query_kwargs = parse_query(group.project, query, request.user)
        except InvalidQuery as exc:
            return Response({'detail': six.text_type(exc)}, status=400)
        if query_kwargs['query']:
            events = events.filter(message__icontains=query_kwargs['query'])
        if query_kwargs['tags']:
            matches = self._tags_to_filter(group, query_kwargs['tags'])
            if matches:
                events = events.filter(id__in=matches)
            else:
                events = events.none()
    return self.paginate(request=request, queryset=events, order_by='-datetime', on_results=(lambda x: serialize(x, request.user)), paginator_cls=DateTimePaginator)
