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:
parent
5fe2f1beda
commit
5789d26f6d
4
issue.go
4
issue.go
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user