1
0
mirror of https://github.com/interviewstreet/go-jira.git synced 2025-01-20 02:59:58 +02:00

Added Parent to issue fields

This commit is contained in:
Patrick O'Connor 2016-10-31 17:31:51 -07:00
parent 5899a43d6a
commit 5f27aa465c

View File

@ -101,6 +101,7 @@ type IssueFields struct {
Subtasks []*Subtasks `json:"subtasks,omitempty" structs:"subtasks,omitempty"`
Attachments []*Attachment `json:"attachment,omitempty" structs:"attachment,omitempty"`
Epic *Epic `json:"epic,omitempty" structs:"epic,omitempty"`
Parent *Parent `json:"parent,omitempty" structs:"parent,omitempty`
Unknowns tcontainer.MarshalMap
}
@ -261,6 +262,12 @@ type Progress struct {
Total int `json:"total" structs:"total"`
}
// Parent represents the parent of a JIRA issue, to be used with subtask issue types.
type Parent struct {
ID string `json:"id,omitempty" structs:id"`
Key string `json:"key,omitempty" structs:key"`
}
// Time represents the Time definition of JIRA as a time.Time of go
type Time time.Time