aboutsummaryrefslogtreecommitdiff
path: root/issues.go
diff options
context:
space:
mode:
Diffstat (limited to 'issues.go')
-rw-r--r--issues.go17
1 files changed, 10 insertions, 7 deletions
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 {