Skip to content

Commit 917eca3

Browse files
committed
Ported fix from go-jira#510
1 parent f50f3d2 commit 917eca3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

search.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func (o *SearchOptions) ProvideSearchRequest() *jiradata.SearchRequest {
7272
return req
7373
}
7474

75-
// https://docs.atlassian.com/jira/REST/cloud/#api/2/search-searchUsingSearchRequest
75+
// https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search/#api-rest-api-3-search-jql-post
7676
func (j *Jira) Search(sp SearchProvider, opts ...SearchOpt) (*jiradata.SearchResults, error) {
7777
return Search(j.UA, j.Endpoint, sp, opts...)
7878
}
@@ -108,7 +108,7 @@ func Search(ua HttpClient, endpoint string, sp SearchProvider, opts ...SearchOpt
108108
if err != nil {
109109
return nil, err
110110
}
111-
uri := URLJoin(endpoint, "rest/api/2/search")
111+
uri := URLJoin(endpoint, "rest/api/3/search/jql")
112112
resp, err := ua.Post(uri, "application/json", bytes.NewBuffer(encoded))
113113
if err != nil {
114114
return nil, err

0 commit comments

Comments
 (0)