Skip to content

Commit

Permalink
Merge pull request #363 from asuffield/context
Browse files Browse the repository at this point in the history
pass context parameters through
  • Loading branch information
benjivesterby authored Mar 16, 2021
2 parents ff0180c + 823e39f commit 1abf9e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,7 @@ func (s *IssueService) UpdateWithOptions(issue *Issue, opts *UpdateQueryOptions)
//
// Jira API docs: https://docs.atlassian.com/jira/REST/cloud/#api/2/issue-editIssue
func (s *IssueService) UpdateWithContext(ctx context.Context, issue *Issue) (*Issue, *Response, error) {
return s.UpdateWithOptions(issue, nil)
return s.UpdateWithOptionsWithContext(ctx, issue, nil)
}

// Update wraps UpdateWithContext using the background context.
Expand Down Expand Up @@ -1119,7 +1119,7 @@ func (s *IssueService) SearchPagesWithContext(ctx context.Context, jql string, o
options.MaxResults = 50
}

issues, resp, err := s.Search(jql, options)
issues, resp, err := s.SearchWithContext(ctx, jql, options)
if err != nil {
return err
}
Expand All @@ -1141,7 +1141,7 @@ func (s *IssueService) SearchPagesWithContext(ctx context.Context, jql string, o
}

options.StartAt += resp.MaxResults
issues, resp, err = s.Search(jql, options)
issues, resp, err = s.SearchWithContext(ctx, jql, options)
if err != nil {
return err
}
Expand Down

0 comments on commit 1abf9e5

Please sign in to comment.