[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-scrum\u002Fmetrics\u002Fteam-speed":3,"docs-tabs-scrum\u002Fmetrics\u002Fteam-speed":6},{"content":4,"lastmod":5},"## Check whether a completed sprint exists\n\n`GET \u002Fv1\u002Fscrum\u002Fgroups\u002F:groupId\u002Fteam-speed`\n\nChecks whether the scrum project has at least one completed sprint from which team velocity can be calculated.\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|----------|-----|-------|----------|\n| `groupId` (path) | number | yes | Scrum project ID. List: [`GET \u002Fv1\u002Fworkgroups`](\u002Fdocs\u002Fentities\u002Fworkgroups\u002Flist) |\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fscrum\u002Fgroups\u002F45\u002Fteam-speed\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\"\n```\n\n### curl — OAuth application\n\n```bash\ncurl \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fscrum\u002Fgroups\u002F45\u002Fteam-speed\" \\\n  -H \"X-Api-Key: YOUR_APP_KEY\" \\\n  -H \"Authorization: Bearer USER_SESSION_TOKEN\"\n```\n\n### JavaScript — personal key\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fscrum\u002Fgroups\u002F45\u002Fteam-speed', {\n  headers: { 'X-Api-Key': 'YOUR_API_KEY' },\n})\n\nconst { data } = await res.json()\nconsole.log(data.existsCompletedSprint ? 'Completed sprints exist' : 'No completed sprints')\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fscrum\u002Fgroups\u002F45\u002Fteam-speed', {\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n  },\n})\n\nconst { data } = await res.json()\nconsole.log(data.existsCompletedSprint ? 'Completed sprints exist' : 'No completed sprints')\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|-----|----------|\n| `success` | boolean | Always `true` on success |\n| `data.existsCompletedSprint` | boolean | `true` — the project has at least one completed sprint, `false` — it has none. A non-scrum workgroup the user belongs to also returns `false` |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"existsCompletedSprint\": true\n  }\n}\n```\n\n## Error response example\n\n422 — the project does not exist or the user has no access to it:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"BITRIX_ERROR\",\n    \"message\": \"You do not have access.\",\n    \"b24Code\": \"TASKS_SCS_02\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|----------|\n| 400 | `INVALID_PARAMS` | `groupId` is not a positive integer |\n| 401 | `MISSING_API_KEY` | `X-Api-Key` is not provided |\n| 401 | `TOKEN_MISSING` | The key has no tokens configured |\n| 403 | `SCOPE_DENIED` | The key lacks the `task` scope |\n| 422 | `BITRIX_ERROR` | The project does not exist or the user has no access to it. `error.b24Code` is `TASKS_SCS_02` |\n\nThe full list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\n- Team velocity is calculated from the story points of tasks in completed sprints: [`GET \u002Fv1\u002Fscrum\u002Fsprints`](\u002Fdocs\u002Fscrum\u002Fsprints\u002Flist) returns the sprints, and [`GET \u002Fv1\u002Fscrum\u002Ftasks\u002F:taskId`](\u002Fdocs\u002Fscrum\u002Ftasks\u002Fget) returns a task's sprint and story points.\n\n## See also\n\n- [Get burndown chart data](\u002Fdocs\u002Fscrum\u002Fmetrics\u002Fburn-down)\n- [List sprints](\u002Fdocs\u002Fscrum\u002Fsprints\u002Flist)\n- [Sprint metrics](\u002Fdocs\u002Fscrum\u002Fmetrics)\n",null,{},1795000571504]