From 0a751aa7223bb7d1e800ad81827afb653de89fdd Mon Sep 17 00:00:00 2001 From: Özgür Kesim Date: Sun, 14 Jan 2024 19:58:19 +0100 Subject: show children of specification features --- issues.go | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'issues.go') diff --git a/issues.go b/issues.go index 88a8ccc..9d650fc 100644 --- a/issues.go +++ b/issues.go @@ -49,10 +49,19 @@ type Issue struct { UpdatedAt time.Time `json:"updated_at"` Notes []Note Relationships []Relationship + Children []Child `json:"-"` Tags []KeyVal History []Change } +type Child struct { + Id uint32 + Summary string + Status KeyVal + Resolution KeyVal + Handler KeyVal +} + type KeyVal struct { Id uint32 Name string @@ -79,13 +88,7 @@ type Attachment struct { type Relationship struct { Id uint32 Typ KeyVal `json:"type"` - Issue struct { - Id uint32 - Summary string - Status KeyVal - Resolution KeyVal - Handler KeyVal - } + Issue Child } type Change struct { -- cgit v1.2.3