Skip to content

Commit

Permalink
feat: Add GetAllStatuses
Browse files Browse the repository at this point in the history
  • Loading branch information
Omar authored and ghostsquad committed Aug 19, 2019
1 parent 52ab347 commit afc96b1
Show file tree
Hide file tree
Showing 5 changed files with 597 additions and 12 deletions.
12 changes: 0 additions & 12 deletions issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,18 +268,6 @@ type Component struct {
Name string `json:"name,omitempty" structs:"name,omitempty"`
}

// Status represents the current status of a JIRA issue.
// Typical status are "Open", "In Progress", "Closed", ...
// Status can be user defined in every JIRA instance.
type Status struct {
Self string `json:"self" structs:"self"`
Description string `json:"description" structs:"description"`
IconURL string `json:"iconUrl" structs:"iconUrl"`
Name string `json:"name" structs:"name"`
ID string `json:"id" structs:"id"`
StatusCategory StatusCategory `json:"statusCategory" structs:"statusCategory"`
}

// Progress represents the progress of a JIRA issue.
type Progress struct {
Progress int `json:"progress" structs:"progress"`
Expand Down
2 changes: 2 additions & 0 deletions jira.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ type Client struct {
Filter *FilterService
Role *RoleService
PermissionScheme *PermissionSchemeService
Status *StatusService
}

// NewClient returns a new JIRA API client.
Expand Down Expand Up @@ -93,6 +94,7 @@ func NewClient(httpClient httpClient, baseURL string) (*Client, error) {
c.Filter = &FilterService{client: c}
c.Role = &RoleService{client: c}
c.PermissionScheme = &PermissionSchemeService{client: c}
c.Status = &StatusService{client: c}

return c, nil
}
Expand Down
Loading

0 comments on commit afc96b1

Please sign in to comment.