mirror of
https://github.com/interviewstreet/go-jira.git
synced 2025-08-10 22:21:36 +02:00
Changes a version back that was changed erroneously
This commit is contained in:
2
issue.go
2
issue.go
@@ -686,7 +686,7 @@ func (s *IssueService) UpdateWithOptions(issue *Issue, opts *UpdateOptions) (*Is
|
|||||||
//
|
//
|
||||||
// JIRA API docs: https://docs.atlassian.com/jira/REST/cloud/#api/2/issue-editIssue
|
// JIRA API docs: https://docs.atlassian.com/jira/REST/cloud/#api/2/issue-editIssue
|
||||||
func (s *IssueService) Update(issue *Issue) (*Issue, *Response, error) {
|
func (s *IssueService) Update(issue *Issue) (*Issue, *Response, error) {
|
||||||
apiEndpoint := fmt.Sprintf("rest/api/3/issue/%v", issue.Key)
|
apiEndpoint := fmt.Sprintf("rest/api/2/issue/%v", issue.Key)
|
||||||
req, err := s.client.NewRequest("PUT", apiEndpoint, issue)
|
req, err := s.client.NewRequest("PUT", apiEndpoint, issue)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, nil, err
|
return nil, nil, err
|
||||||
|
Reference in New Issue
Block a user