diff options
Diffstat (limited to 'issues.go')
-rw-r--r-- | issues.go | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -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 { |