diff --git a/issue.go b/issue.go index 0aa03b70..49dab51c 100644 --- a/issue.go +++ b/issue.go @@ -530,10 +530,11 @@ type SearchOptions struct { // searchResult is only a small wrapper around the Search (with JQL) method // to be able to parse the results type searchResult struct { - Issues []Issue `json:"issues" structs:"issues"` - StartAt int `json:"startAt" structs:"startAt"` - MaxResults int `json:"maxResults" structs:"maxResults"` - Total int `json:"total" structs:"total"` + Issues []Issue `json:"issues" structs:"issues"` + StartAt int `json:"startAt" structs:"startAt"` + MaxResults int `json:"maxResults" structs:"maxResults"` + Total int `json:"total" structs:"total"` + Names map[string]string `json:"names" structs:"names"` } // GetQueryOptions specifies the optional parameters for the Get Issue methods diff --git a/jira.go b/jira.go index 25c52bae..9668617f 100644 --- a/jira.go +++ b/jira.go @@ -327,6 +327,7 @@ type Response struct { StartAt int MaxResults int Total int + Names map[string]string } func newResponse(r *http.Response, v interface{}) *Response { @@ -343,6 +344,7 @@ func (r *Response) populatePageValues(v interface{}) { r.StartAt = value.StartAt r.MaxResults = value.MaxResults r.Total = value.Total + r.Names = value.Names case *groupMembersResult: r.StartAt = value.StartAt r.MaxResults = value.MaxResults