[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-scrum\u002Fdod\u002Fnecessary":3,"docs-tabs-scrum\u002Fdod\u002Fnecessary":6},{"content":4,"lastmod":5},"## Check whether a task needs DoD\n\n`GET \u002Fv1\u002Fscrum\u002Fgroups\u002F:groupId\u002Ftasks\u002F:taskId\u002Fdod\u002Fnecessary`\n\nChecks whether a task in a scrum project needs a Definition of Done (DoD) checklist, given the project ID and the task ID.\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| `taskId` (path) | number | yes | Task ID. Project tasks: [`GET \u002Fv1\u002Ftasks?filter[groupId]=45`](\u002Fdocs\u002Fentities\u002Ftasks\u002Flist) |\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fscrum\u002Fgroups\u002F45\u002Ftasks\u002F2143\u002Fdod\u002Fnecessary\" \\\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\u002Ftasks\u002F2143\u002Fdod\u002Fnecessary\" \\\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\u002Ftasks\u002F2143\u002Fdod\u002Fnecessary', {\n  headers: { 'X-Api-Key': 'YOUR_API_KEY' },\n})\n\nconst { data: needsDod } = await res.json()\nconsole.log(needsDod ? 'DoD checklist required' : 'DoD checklist not required')\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fscrum\u002Fgroups\u002F45\u002Ftasks\u002F2143\u002Fdod\u002Fnecessary', {\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n  },\n})\n\nconst { data: needsDod } = await res.json()\nconsole.log(needsDod ? 'DoD checklist required' : 'DoD checklist not required')\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|-----|----------|\n| `success` | boolean | Always `true` on success |\n| `data` | boolean | `true` — the task needs a DoD checklist, `false` — it does not |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": true\n}\n```\n\n## Error response example\n\n400 — `taskId` is not a positive integer:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"INVALID_PARAMS\",\n    \"message\": \"groupId and taskId must be positive integers\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|----------|\n| 400 | `INVALID_PARAMS` | `groupId` or `taskId` is not a positive integer |\n| 401 | `MISSING_API_KEY` | `X-Api-Key` is missing |\n| 401 | `TOKEN_MISSING` | The key has no configured tokens |\n| 403 | `SCOPE_DENIED` | The key lacks the `task` scope |\n| 422 | `BITRIX_ERROR` | Bitrix24 refused the check |\n\nFull list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\n- A `false` response does not confirm that the task and the project exist. A nonexistent task, a nonexistent project, and a project the user has no access to all return `data: false`, not an error. Check the task beforehand with [`GET \u002Fv1\u002Fscrum\u002Ftasks\u002F:taskId`](\u002Fdocs\u002Fscrum\u002Ftasks\u002Fget).\n\n## See also\n\n- [Get DoD settings](\u002Fdocs\u002Fscrum\u002Fdod\u002Fsettings)\n- [Save a task's DoD list](\u002Fdocs\u002Fscrum\u002Fdod\u002Fsave-list)\n- [Get a task's scrum placement](\u002Fdocs\u002Fscrum\u002Ftasks\u002Fget)\n- [Definition of Done in Scrum](\u002Fdocs\u002Fscrum\u002Fdod)\n",null,{},1795000570051]