Fix parent ticket assignment and display
linter / quality (pull_request) Successful in 1m15s
tests / ci (8.4) (pull_request) Successful in 1m35s

This commit is contained in:
2026-05-24 15:24:29 +00:00
parent ffe5939628
commit ce260bfd46
9 changed files with 227 additions and 1 deletions
+6
View File
@@ -43,6 +43,12 @@ class TicketResource extends JsonResource
fn (): array => TicketFieldValueResource::collection($this->fieldValues)->resolve(),
),
'is_blocked' => $this->is_blocked,
'parent_ticket' => $this->whenLoaded(
'parentTicket',
fn (): ?array => $this->parentTicket === null
? null
: TicketReferenceResource::make($this->parentTicket)->resolve(),
),
'parent_ticket_id' => $this->parent_ticket_id,
'project_id' => $this->project_id,
'sequence_number' => $this->sequence_number,