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:
parent
b55a929fd8
commit
1ecb2d6f4d
3 changed files with 38 additions and 0 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue