1
0
mirror of https://github.com/interviewstreet/go-jira.git synced 2025-11-25 22:12:08 +02:00

Adds a struct representing a version

This commit is contained in:
attack7
2016-08-02 09:57:00 -04:00
parent 509805fc54
commit ec2e9dd652

View File

@@ -53,6 +53,18 @@ type Project struct {
ProjectCategory ProjectCategory `json:"projectCategory,omitempty"`
}
// Version represents a single release version of a project
type Version struct {
Self string `json:"self"`
ID string `json:"id"`
Name string `json:"name"`
Archived bool `json:"archived"`
Released bool `json:"released"`
ReleaseDate string `json:"releaseDate"`
UserReleaseDate string `json:"userReleaseDate"`
ProjectID int `json:"projectId"` // Unlike other IDs, this is returned as a number
}
// ProjectComponent represents a single component of a project
type ProjectComponent struct {
Self string `json:"self"`