From bc2f1e83201cf1f178f70f1b2c303a644f712580 Mon Sep 17 00:00:00 2001 From: Andy Grunwald Date: Sun, 27 Mar 2016 13:53:15 +0200 Subject: [PATCH] Remove update fields, because this is more like edit issue and this method was not fully complete --- issue.go | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/issue.go b/issue.go index b530473..5f1854c 100644 --- a/issue.go +++ b/issue.go @@ -249,29 +249,7 @@ func (s *IssueService) Create(issue *Issue) (*Issue, *http.Response, error) { return responseIssue, resp, nil } -func (s *IssueService) UpdateFields(issueID string, fields map[string]string) (*Issue, *http.Response, error) { - apiEndpoint := fmt.Sprintf("rest/api/2/issue/%s", issueID) - - type FieldsParams struct { - Fields map[string]string `json:"fields"` - } - - params := FieldsParams{ - Fields: fields, - } - - req, err := s.client.NewRequest("PUT", apiEndpoint, params) - if err != nil { - return nil, nil, err - } - - responseIssue := new(Issue) - resp, _ := s.client.Do(req, responseIssue) - - return responseIssue, resp, nil -} - - func (s *IssueService) AddComment(issueID string, comment string) (*Issue, *http.Response, error) { +func (s *IssueService) AddComment(issueID string, comment string) (*Issue, *http.Response, error) { apiEndpoint := fmt.Sprintf("rest/api/2/issue/%s/comment", issueID) type CommentBody struct {