Example #1
0
 def get(self, project_id):
     """
     Retrieve all comments to tasks related to given project.
     ---
     tags:
     - Tasks
     description: It's mainly used for synchronisation purpose.
     parameters:
       - in: path
         name: project_id
         required: True
         schema:
             type: UUID
             example: a24a6ea4-ce75-4665-a070-57453082c25
     responses:
         200:
             description: All comments to tasks related to given project
     """
     projects_service.get_project(project_id)
     page = self.get_page()
     return tasks_service.get_comments_for_project(project_id, page)
Example #2
0
 def get(self, project_id):
     projects_service.get_project(project_id)
     page = self.get_page()
     return tasks_service.get_comments_for_project(project_id, page)
Example #3
0
 def get(self, project_id):
     permissions.check_admin_permissions()
     projects_service.get_project(project_id)
     page = self.get_page()
     return tasks_service.get_comments_for_project(project_id, page)