parameters: (self, project_id)
return_statement: return {'tasks': [TaskDetails.export(task) for task in tasks[offset:offset + limit]]}, 200
docstring: Get all tasks for the project with the given id.
          :param project_id: id of the project
          :return: tasks for the project
docstring_summary: Get all tasks for the project with the given id.
          :param project_id: id of the project
          :return: tasks for the project
docstring_tokens: Get all tasks for the project with the given id . : param project_id : id of the project : return : tasks for the project
function: def get(self, project_id):
          """ Get all tasks for the project with the given id.
          :param project_id: id of the project
          :return: tasks for the project
          """
          try:
              pagination_args = get_pagination_args(request)
          except ArgumentError as e:
              return {'message': e.message}, 500
  
          limit = pagination_args['limit'] if 'limit' in pagination_args else self.DEFAULT_LIMIT
          offset = pagination_args['offset'] if 'offset' in pagination_args else self.DEFAULT_OFFSET
  
          tasks = backend.filter(Task, {'project.pk': request.project.pk},
                                       include=('project',), only=TaskDetails.export_fields, raw=True
                                       ).sort('created_at', -1)
  
          return {'tasks': [TaskDetails.export(task) for task in tasks[offset:offset + limit]]}, 200
function_tokens: def get ( self , project_id ) : try : pagination_args = get_pagination_args ( request ) except ArgumentError as e : return { 'message' : e . message } , 500 limit = pagination_args [ 'limit' ] if 'limit' in pagination_args else self . DEFAULT_LIMIT offset = pagination_args [ 'offset' ] if 'offset' in pagination_args else self . DEFAULT_OFFSET tasks = backend . filter ( Task , { 'project.pk' : request . project . pk } , include = ( 'project' , ) , only = TaskDetails . export_fields , raw = True ) . sort ( 'created_at' , - 1 ) return { 'tasks' : [ TaskDetails . export ( task ) for task in tasks [ offset : offset + limit ] ] } , 200