def METHOD_NAME(self, request, slug):
    try:
        queryset = IssueActivity.objects.filter(
            actor=request.user, workspace__slug=slug
        ).select_related("actor", "workspace", "issue", "project")
        return self.paginate(
            request=request,
            queryset=queryset,
            on_results=lambda issue_activities: IssueActivitySerializer(
                issue_activities, many=True
            ).data,
        )
    except Exception as e:
        capture_exception(e)
        return Response(
            {"error": "Something went wrong please try again later"},
            status=status.HTTP_400_BAD_REQUEST,
        )