Validate status selector for list tickets tool

This commit is contained in:
2026-04-23 19:46:42 +00:00
parent cd574ec26b
commit c79c7bf22e
2 changed files with 12 additions and 1 deletions
+3 -1
View File
@@ -31,7 +31,9 @@ class ListTicketsByStatus extends Tool
'project_id' => ['nullable', 'integer'],
'status_name' => ['nullable', 'string'],
'status_slug' => ['nullable', 'string'],
'ticket_status_id' => ['nullable', 'integer'],
'ticket_status_id' => ['nullable', 'integer', 'required_without_all:status_slug,status_name'],
], [
'ticket_status_id.required_without_all' => 'Provide ticket_status_id, status_slug, or status_name.',
]);
$user = $this->kanbanGitMcp->user($request);