mirror of
https://github.com/interviewstreet/go-jira.git
synced 2025-01-22 03:10:10 +02:00
Fix of Project.Roles Unmarshal Bug
It is now possible to unmarshal all roles completely flexible in a map. Before it was only possible to save a role called "Developers"
This commit is contained in:
parent
3ef5870bca
commit
c30eba2b69
34
project.go
34
project.go
@ -36,24 +36,22 @@ type ProjectCategory struct {
|
|||||||
|
|
||||||
// Project represents a JIRA Project.
|
// Project represents a JIRA Project.
|
||||||
type Project struct {
|
type Project struct {
|
||||||
Expand string `json:"expand,omitempty" structs:"expand,omitempty"`
|
Expand string `json:"expand,omitempty" structs:"expand,omitempty"`
|
||||||
Self string `json:"self,omitempty" structs:"self,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"`
|
||||||
Key string `json:"key,omitempty" structs:"key,omitempty"`
|
Key string `json:"key,omitempty" structs:"key,omitempty"`
|
||||||
Description string `json:"description,omitempty" structs:"description,omitempty"`
|
Description string `json:"description,omitempty" structs:"description,omitempty"`
|
||||||
Lead User `json:"lead,omitempty" structs:"lead,omitempty"`
|
Lead User `json:"lead,omitempty" structs:"lead,omitempty"`
|
||||||
Components []ProjectComponent `json:"components,omitempty" structs:"components,omitempty"`
|
Components []ProjectComponent `json:"components,omitempty" structs:"components,omitempty"`
|
||||||
IssueTypes []IssueType `json:"issueTypes,omitempty" structs:"issueTypes,omitempty"`
|
IssueTypes []IssueType `json:"issueTypes,omitempty" structs:"issueTypes,omitempty"`
|
||||||
URL string `json:"url,omitempty" structs:"url,omitempty"`
|
URL string `json:"url,omitempty" structs:"url,omitempty"`
|
||||||
Email string `json:"email,omitempty" structs:"email,omitempty"`
|
Email string `json:"email,omitempty" structs:"email,omitempty"`
|
||||||
AssigneeType string `json:"assigneeType,omitempty" structs:"assigneeType,omitempty"`
|
AssigneeType string `json:"assigneeType,omitempty" structs:"assigneeType,omitempty"`
|
||||||
Versions []Version `json:"versions,omitempty" structs:"versions,omitempty"`
|
Versions []Version `json:"versions,omitempty" structs:"versions,omitempty"`
|
||||||
Name string `json:"name,omitempty" structs:"name,omitempty"`
|
Name string `json:"name,omitempty" structs:"name,omitempty"`
|
||||||
Roles struct {
|
Roles map[string]string `json:"roles,omitempty" structs:"roles,omitempty"`
|
||||||
Developers string `json:"Developers,omitempty" structs:"Developers,omitempty"`
|
AvatarUrls AvatarUrls `json:"avatarUrls,omitempty" structs:"avatarUrls,omitempty"`
|
||||||
} `json:"roles,omitempty" structs:"roles,omitempty"`
|
ProjectCategory ProjectCategory `json:"projectCategory,omitempty" structs:"projectCategory,omitempty"`
|
||||||
AvatarUrls AvatarUrls `json:"avatarUrls,omitempty" structs:"avatarUrls,omitempty"`
|
|
||||||
ProjectCategory ProjectCategory `json:"projectCategory,omitempty" structs:"projectCategory,omitempty"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ProjectComponent represents a single component of a project
|
// ProjectComponent represents a single component of a project
|
||||||
|
Loading…
x
Reference in New Issue
Block a user