タスクのコメント一覧を取得する


GET /api/project/:projectId/task/:taskId/comment/in_tree

指定したタスクのコメント一覧を返します。

Endpoint URL

https://<space_id>.repsona.com/api/project/:projectId/task/:taskId/comment/in_tree

Authorization

Owner Admin Member

Path parameters

NameTypeDescription
projectId*stringプロジェクトID
taskId*stringタスクID

Example responses

{
  "requestedBy": 1,
  "project": 1,
  "taskComments": [
    {
      "files": [],
      "createdAt": 1672498800000,
      "updatedAt": 1672498800000,
      "id": 1746,
      "deletedAt": null,
      "comment": "I'll try.",
      "space": 1,
      "user": {
        "id": 1746,
        "name": "Seb",
        "fullName": "Seb Osborn",
        "avatarUrl": "/dummy/avatar2.png",
        "extra": null
      },
      "parent": null,
      "task": 2,
      "children": [
        {
          "files": [],
          "createdAt": 1672498800000,
          "updatedAt": 1672498800000,
          "id": 1746,
          "deletedAt": null,
          "comment": "What do you think?",
          "space": 1,
          "user": {
            "id": 1746,
            "name": "Rita",
            "fullName": "Rita Hurst",
            "avatarUrl": "/dummy/avatar5.png",
            "extra": null
          },
          "parent": 5,
          "task": 2,
          "children": [
            {
              "files": [],
              "createdAt": 1672498800000,
              "updatedAt": 1672498800000,
              "id": 1746,
              "deletedAt": null,
              "comment": "I think it's good.",
              "space": 1,
              "user": {
                "id": 1746,
                "name": "Joel",
                "fullName": "Joel Blackburn",
                "avatarUrl": "/dummy/avatar6.png",
                "extra": null
              },
              "parent": 8,
              "task": 2,
              "children": []
            }
          ]
        }
      ]
    }
  ]
}

人を中心に、もっといいチームに!

Repsonaはチームのための理想的な仕事管理ツールです
無料ではじめる