mirror of
https://github.com/interviewstreet/go-jira.git
synced 2025-06-16 23:47:50 +02:00
Add ComponentService to allow creation of Components
This commit is contained in:
2
jira.go
2
jira.go
@ -37,6 +37,7 @@ type Client struct {
|
||||
Version *VersionService
|
||||
Priority *PriorityService
|
||||
Field *FieldService
|
||||
Component *ComponentService
|
||||
}
|
||||
|
||||
// NewClient returns a new JIRA API client.
|
||||
@ -75,6 +76,7 @@ func NewClient(httpClient *http.Client, baseURL string) (*Client, error) {
|
||||
c.Version = &VersionService{client: c}
|
||||
c.Priority = &PriorityService{client: c}
|
||||
c.Field = &FieldService{client: c}
|
||||
c.Component = &ComponentService{client: c}
|
||||
|
||||
return c, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user