1
0
mirror of https://github.com/interviewstreet/go-jira.git synced 2025-03-21 21:07:03 +02:00

Add FixVersions to IssueFields - Thanks to @dimfeld

This commit is contained in:
Daniel Imfeld 2016-02-13 21:15:32 -06:00 committed by Andy Grunwald
parent efccf68225
commit 10af43a35a

@ -31,7 +31,6 @@ type Issue struct {
type IssueFields struct {
// TODO Missing fields
// * "timespent": null,
// * "fixVersions": [],
// * "aggregatetimespent": null,
// * "workratio": -1,
// * "lastViewed": null,
@ -65,6 +64,7 @@ type IssueFields struct {
Worklog []*Worklog `json:"worklog,omitempty"`
IssueLinks []*IssueLink `json:"issuelinks,omitempty"`
Comments []*Comment `json:"comment,omitempty"`
FixVersions []*FixVersion `json:"fixVersions,omitempty"`
}
// IssueType represents a type of a JIRA issue.
@ -194,6 +194,18 @@ type Comment struct {
Created string `json:"created"`
}
// FixVersion represents a software release in which an issue is fixed.
type FixVersion struct {
Archived *bool `json:"archived,omitempty"`
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
ProjectID int `json:"projectId,omitempty"`
ReleaseDate string `json:"releaseDate,omitempty"`
Released *bool `json:"released,omitempty"`
Self string `json:"self,omitempty"`
UserReleaseDate string `json:"userReleaseDate,omitempty"`
}
// Get returns a full representation of the issue for the given issue key.
// JIRA will attempt to identify the issue by the issueIdOrKey path parameter.
// This can be an issue id, or an issue key.