mirror of
https://github.com/interviewstreet/go-jira.git
synced 2024-11-24 08:22:42 +02:00
Manage versions startDate
This commit is contained in:
parent
bbce4afa54
commit
570a74be05
@ -24,6 +24,7 @@ type Version struct {
|
||||
ReleaseDate string `json:"releaseDate,omitempty" structs:"releaseDate,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"`
|
||||
}
|
||||
|
||||
// Get gets version info from JIRA
|
||||
|
@ -23,6 +23,7 @@ func TestVersionService_Get_Success(t *testing.T) {
|
||||
"releaseDate": "2010-07-06",
|
||||
"overdue": true,
|
||||
"userReleaseDate": "6/Jul/2010",
|
||||
"startDate" : "2010-07-01",
|
||||
"projectId": 10000
|
||||
}`)
|
||||
})
|
||||
@ -63,6 +64,7 @@ func TestVersionService_Create(t *testing.T) {
|
||||
Released: true,
|
||||
ReleaseDate: "2010-07-06",
|
||||
UserReleaseDate: "6/Jul/2010",
|
||||
StartDate: "2018-07-01",
|
||||
}
|
||||
|
||||
version, _, err := testClient.Version.Create(v)
|
||||
@ -87,6 +89,7 @@ func TestServiceService_Update(t *testing.T) {
|
||||
"released": true,
|
||||
"releaseDate": "2010-07-06",
|
||||
"userReleaseDate": "6/Jul/2010",
|
||||
"startDate" : "2010-07-01",
|
||||
"project": "PXA",
|
||||
"projectId": 10000
|
||||
}`)
|
||||
|
Loading…
Reference in New Issue
Block a user