diff --git a/db/structs.go b/db/structs.go index da3e4fccc..e0c018a2c 100644 --- a/db/structs.go +++ b/db/structs.go @@ -954,6 +954,8 @@ const ( type BountyCard struct { BountyID uint `json:"id"` + TicketUUID *uuid.UUID `json:"ticket_uuid,omitempty"` + TicketGroup *uuid.UUID `json:"ticket_group,omitempty"` Title string `json:"title"` AssigneePic string `json:"assignee_img,omitempty"` Assignee string `json:"assignee"` diff --git a/handlers/bounty.go b/handlers/bounty.go index 4771546e6..825d44050 100644 --- a/handlers/bounty.go +++ b/handlers/bounty.go @@ -1593,6 +1593,8 @@ func (h *bountyHandler) GenerateTicketCardResponse(workspaceUuid string) ([]db.B ticketCard := db.BountyCard{ BountyID: bountyID, + TicketUUID: &ticket.UUID, + TicketGroup: ticket.TicketGroup, Title: ticket.Name, AssigneePic: "", Assignee: "",