mirror of
https://github.com/interviewstreet/go-jira.git
synced 2025-03-27 21:38:54 +02:00
Update CreateComponentOptions to include JSON field tags
This commit is contained in:
parent
a6efe394fa
commit
1020f3e808
26
component.go
26
component.go
@ -15,29 +15,23 @@ type ComponentService struct {
|
|||||||
|
|
||||||
// CreateComponentOptions are passed to the ComponentService.Create function to create a new JIRA component
|
// CreateComponentOptions are passed to the ComponentService.Create function to create a new JIRA component
|
||||||
type CreateComponentOptions struct {
|
type CreateComponentOptions struct {
|
||||||
Name string
|
Name string `json:"name,omitempty" structs:"name,omitempty"`
|
||||||
Description string
|
Description string `json:"description,omitempty" structs:"description,omitempty"`
|
||||||
LeadUserName string
|
Lead *User `json:"lead,omitempty" structs:"lead,omitempty"`
|
||||||
AssigneeType string
|
LeadUserName string `json:"leadUserName,omitempty" structs:"leadUserName,omitempty"`
|
||||||
Lead *User
|
AssigneeType string `json:"assigneeType,omitempty" structs:"assigneeType,omitempty"`
|
||||||
Assignee *User
|
Assignee *User `json:"assignee,omitempty" structs:"assignee,omitempty"`
|
||||||
Project string
|
Project string `json:"project,omitempty" structs:"project,omitempty"`
|
||||||
ProjectID *int
|
ProjectID int `json:"projectId,omitempty" structs:"projectId,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// FullComponent is a JIRA component with all details filled in
|
// FullComponent is a JIRA component with all details filled in
|
||||||
type FullComponent struct {
|
type FullComponent struct {
|
||||||
Name string `json:"name,omitempty" structs:"name,omitempty"`
|
|
||||||
Description string `json:"description,omitempty" structs:"description,omitempty"`
|
|
||||||
Lead *User `json:"lead,omitempty" structs:"lead,omitempty"`
|
|
||||||
Assignee *User `json:"assignee,omitempty" structs:"assignee,omitempty"`
|
|
||||||
LeadUserName string `json:"leadUserName,omitempty" structs:"leadUserName,omitempty"`
|
|
||||||
AssigneeType string `json:"assigneeType,omitempty" structs:"assigneeType,omitempty"`
|
|
||||||
RealAssigneeType string `json:"realAssigneeType,omitempty" structs:"realAssigneeType,omitempty"`
|
RealAssigneeType string `json:"realAssigneeType,omitempty" structs:"realAssigneeType,omitempty"`
|
||||||
RealAssignee *User `json:"realAssignee,omitempty" structs:"realAssignee,omitempty"`
|
RealAssignee *User `json:"realAssignee,omitempty" structs:"realAssignee,omitempty"`
|
||||||
IsAssigneeTypeValid bool `json:"isAssigneeTypeValid,omitempty" structs:"isAssigneeTypeValid,omitempty"`
|
IsAssigneeTypeValid bool `json:"isAssigneeTypeValid,omitempty" structs:"isAssigneeTypeValid,omitempty"`
|
||||||
Project string `json:"project,omitempty" structs:"project,omitempty"`
|
|
||||||
ProjectID int `json:"projectId,omitempty" structs:"projectId,omitempty"`
|
CreateComponentOptions
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create creates a new JIRA component based on the given options.
|
// Create creates a new JIRA component based on the given options.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user