# プロジェクトの完了タスク一覧

`GET /api/project/{projectId}/task/completed`

URL: https://repsona.com/ja/api/get-project-projectid-task-completed

完了したタスクを、更新が新しい順に返します。

## パラメーター

| name | in | type | required | description |
| --- | --- | --- | --- | --- |
| `projectId` | path | "@all" \| integer | 必須 | プロジェクト ID。`@all` を渡すと、参加中の終了していないプロジェクトすべてが対象になります。 |
| `page` | query | integer |  | ページ番号 (1 から)。1 ページあたり最大 30 件のタスクです。 |

## リクエスト

```sh
curl -X GET "https://<space>.repsona.com/api/project/{projectId}/task/completed" \
  -H "Authorization: Bearer $REPSONA_API_KEY"
```

## レスポンス

- 200: Closed tasks ordered by recent update
- 401: Authentication is required
- 403: Not a project member
- 404: Project not found

## レスポンスの例

```json
{
  "tasks": [
    {
      "id": 100393,
      "name": "Publish the release notes",
      "projectName": "Website renewal",
      "project": {
        "id": 253,
        "name": "WEB",
        "avatarUrl": ""
      },
      "ancestorNames": [],
      "status": {
        "id": 168,
        "name": "Done",
        "color": null,
        "isClosed": true
      },
      "owner": null,
      "tags": [],
      "dueDate": 1793491200000,
      "priority": null
    }
  ],
  "hasMore": false
}
```
