mirror of
https://github.com/interviewstreet/go-jira.git
synced 2025-01-24 03:16:18 +02:00
added missing Comment for filter.Get()
This commit is contained in:
parent
1d76fca9ba
commit
d53ea6050b
24
filter.go
24
filter.go
@ -12,24 +12,11 @@ type FilterService struct {
|
|||||||
|
|
||||||
// Filter represents a Filter in Jira
|
// Filter represents a Filter in Jira
|
||||||
type Filter struct {
|
type Filter struct {
|
||||||
Self string `json:"self"`
|
Self string `json:"self"`
|
||||||
ID string `json:"id"`
|
ID string `json:"id"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Description string `json:"description"`
|
Description string `json:"description"`
|
||||||
Owner struct {
|
Owner User `json:"owner"`
|
||||||
Self string `json:"self"`
|
|
||||||
Key string `json:"key"`
|
|
||||||
AccountID string `json:"accountId"`
|
|
||||||
Name string `json:"name"`
|
|
||||||
AvatarUrls struct {
|
|
||||||
Four8X48 string `json:"48x48"`
|
|
||||||
Two4X24 string `json:"24x24"`
|
|
||||||
One6X16 string `json:"16x16"`
|
|
||||||
Three2X32 string `json:"32x32"`
|
|
||||||
} `json:"avatarUrls"`
|
|
||||||
DisplayName string `json:"displayName"`
|
|
||||||
Active bool `json:"active"`
|
|
||||||
} `json:"owner"`
|
|
||||||
Jql string `json:"jql"`
|
Jql string `json:"jql"`
|
||||||
ViewURL string `json:"viewUrl"`
|
ViewURL string `json:"viewUrl"`
|
||||||
SearchURL string `json:"searchUrl"`
|
SearchURL string `json:"searchUrl"`
|
||||||
@ -72,6 +59,7 @@ func (fs *FilterService) GetList() ([]*Filter, *Response, error) {
|
|||||||
return filters, resp, err
|
return filters, resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Get retrieves a single Filter from Jira
|
||||||
func (fs *FilterService) Get(filterID int) (*Filter, *Response, error) {
|
func (fs *FilterService) Get(filterID int) (*Filter, *Response, error) {
|
||||||
apiEndpoint := fmt.Sprintf("rest/api/2/filter/%d", filterID)
|
apiEndpoint := fmt.Sprintf("rest/api/2/filter/%d", filterID)
|
||||||
req, err := fs.client.NewRequest("GET", apiEndpoint, nil)
|
req, err := fs.client.NewRequest("GET", apiEndpoint, nil)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user