-
-
Notifications
You must be signed in to change notification settings - Fork 497
issue: switch to new search API #717
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
fwiw, SearchPages function at line 1166 is missing a |
Also, I think searchResult needs a |
@dustin-decker reported that the current search APIs will be deprecated on May 1 2025 [1]. Switch to the new search API. [1] https://developer.atlassian.com/changelog/#CHANGE-2046 v2: suggested fixed from @ns-mglaske Signed-off-by: Prarit Bhargava <[email protected]>
Fixed in new push
Fixed in new push And thanks :) |
Also, I think Response in jira.go needs the NextPageToken, along with updates to populatePageValues.. |
Also.. It seems that a number of the fields that jira returns are no longer strings (eg, Description), but Jira's ADF format which really sucks :). I wrote a adf_translator such that you can replace the IssueFields, eg, Description with Description . You could also take it a step further, and just do
|
@ns-mglaske I think you can avoid some of the effort of supporting ADF by sticking with the v2 version of the search endpoint. The important part for the deprecation notice is switching from See https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/#version |
func (s *IssueService) Search(ctx context.Context, jql string, options *SearchOptions) ([]Issue, *Response, error) { | ||
u := url.URL{ | ||
Path: "rest/api/2/search", | ||
Path: "rest/api/3/search/jql", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As mentioned in PR discussion, it might be better to stick with v2
for now to avoid the breaking changes from strings to ADF. V2 is still supported (not deprecated), provided that you use the /jql
version which uses nextPageToken
.
See https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/#version
Hey all, |
What type of PR is this?
bug
Optionally add one or more of the following kinds if applicable:
api-change
What this PR does / why we need it:
@dustin-decker reported that the current search APIs will be deprecated on May 1 2025 [1].
Switch to the new search API.
[1] https://developer.atlassian.com/changelog/#CHANGE-2046
Which issue(s) this PR fixes:
Fixes #715
Special notes for your reviewer:
This is untested. I want to see if this passes CI.
Additional documentation e.g., usage docs, etc.: