feat: voeg geselecteerde PBI automatisch toe aan nieuwe sprint

Bij sprint-aanmaak wordt de pbi_id uit de selection-store als hidden
form-field meegestuurd. Server-side worden alle stories van die PBI
(zonder sprint) en hun taken aan de nieuwe sprint gekoppeld; stories
krijgen status IN_SPRINT met incrementele sort_order.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Janpeter Visser 2026-05-08 02:09:55 +02:00
parent b55a929fd8
commit 1ecb2d6f4d
3 changed files with 38 additions and 0 deletions

View file

@ -17,6 +17,11 @@ export const createSprintSchema = z
sprint_goal: z.string().min(1, 'Sprint Goal is verplicht').max(500),
start_date: dateField,
end_date: dateField,
pbi_id: z
.string()
.nullable()
.optional()
.transform(v => (v && v.trim() !== '' ? v : null)),
})
.superRefine(validateDateOrder)