Fix parent ticket assignment and display
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user