Skip to content

Commit 823e39f

Browse files
committed
pass context parameters through
1 parent ff0180c commit 823e39f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

issue.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ func (s *IssueService) UpdateWithOptions(issue *Issue, opts *UpdateQueryOptions)
857857
//
858858
// Jira API docs: https://docs.atlassian.com/jira/REST/cloud/#api/2/issue-editIssue
859859
func (s *IssueService) UpdateWithContext(ctx context.Context, issue *Issue) (*Issue, *Response, error) {
860-
return s.UpdateWithOptions(issue, nil)
860+
return s.UpdateWithOptionsWithContext(ctx, issue, nil)
861861
}
862862

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

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

11431143
options.StartAt += resp.MaxResults
1144-
issues, resp, err = s.Search(jql, options)
1144+
issues, resp, err = s.SearchWithContext(ctx, jql, options)
11451145
if err != nil {
11461146
return err
11471147
}

0 commit comments

Comments
 (0)