mirror of
https://github.com/interviewstreet/go-jira.git
synced 2025-06-27 00:21:07 +02:00
Unify FixVersion and Version types
The FixVersion type was missing some fields. Now it is a complete copy of the more complete Version struct, with the only difference that the bool fields are pointers (for compatibility reasons). Fixes #208
This commit is contained in:
10
issue.go
10
issue.go
@ -464,14 +464,16 @@ type Comment struct {
|
|||||||
|
|
||||||
// FixVersion represents a software release in which an issue is fixed.
|
// FixVersion represents a software release in which an issue is fixed.
|
||||||
type FixVersion struct {
|
type FixVersion struct {
|
||||||
Archived *bool `json:"archived,omitempty" structs:"archived,omitempty"`
|
Self string `json:"self,omitempty" structs:"self,omitempty"`
|
||||||
ID string `json:"id,omitempty" structs:"id,omitempty"`
|
ID string `json:"id,omitempty" structs:"id,omitempty"`
|
||||||
Name string `json:"name,omitempty" structs:"name,omitempty"`
|
Name string `json:"name,omitempty" structs:"name,omitempty"`
|
||||||
ProjectID int `json:"projectId,omitempty" structs:"projectId,omitempty"`
|
Description string `json:"description,omitempty" structs:"name,omitempty"`
|
||||||
ReleaseDate string `json:"releaseDate,omitempty" structs:"releaseDate,omitempty"`
|
Archived *bool `json:"archived,omitempty" structs:"archived,omitempty"`
|
||||||
Released *bool `json:"released,omitempty" structs:"released,omitempty"`
|
Released *bool `json:"released,omitempty" structs:"released,omitempty"`
|
||||||
Self string `json:"self,omitempty" structs:"self,omitempty"`
|
ReleaseDate string `json:"releaseDate,omitempty" structs:"releaseDate,omitempty"`
|
||||||
UserReleaseDate string `json:"userReleaseDate,omitempty" structs:"userReleaseDate,omitempty"`
|
UserReleaseDate string `json:"userReleaseDate,omitempty" structs:"userReleaseDate,omitempty"`
|
||||||
|
ProjectID int `json:"projectId,omitempty" structs:"projectId,omitempty"` // Unlike other IDs, this is returned as a number
|
||||||
|
StartDate string `json:"startDate,omitempty" structs:"startDate,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CommentVisibility represents he visibility of a comment.
|
// CommentVisibility represents he visibility of a comment.
|
||||||
|
Reference in New Issue
Block a user