1
0
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:
Nate Mara
2018-06-25 10:47:53 -04:00
committed by Nate Mara
parent 98a84a4c00
commit a6efe394fa
3 changed files with 98 additions and 0 deletions

View File

@ -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
}