1
0
mirror of https://github.com/interviewstreet/go-jira.git synced 2025-03-17 20:47:57 +02:00

Fixes the api version

This commit is contained in:
spmassot 2018-10-17 17:10:54 -04:00
parent 5fe2f1beda
commit 5789d26f6d

View File

@ -661,10 +661,8 @@ func (s *IssueService) Create(issue *Issue) (*Issue, *Response, error) {
//
// JIRA API docs: https://docs.atlassian.com/jira/REST/cloud/#api/2/issue-editIssue
func (s *IssueService) UpdateWithOptions(issue *Issue, opts *UpdateQueryOptions) (*Issue, *Response, error) {
apiEndpoint := fmt.Sprintf("rest/api/3/issue/%v", issue.Key)
apiEndpoint := fmt.Sprintf("rest/api/2/issue/%v", issue.Key)
url, err := addOptions(apiEndpoint, opts)
fmt.Println(url)
fmt.Println(issue)
if err != nil {
return nil, nil, err
}