Repository navigation
[JiraSprint] Use /search/jql endpoint for Jira Cloud - #12262
Open
torrresagus wants to merge 1 commit into
Open
torrresagus wants to merge 1 commit into
torrresagus wants to merge 1 commit into
Conversation
JiraSprint now calls `/rest/api/2/search/jql` for Jira Cloud sites (`*.atlassian.net` and `api.atlassian.com/ex/jira`), because Cloud removed `/rest/api/2/search` in CHANGE-2046. On Cloud it follows `nextPageToken` until `isLast` and counts the issues itself, since the new endpoint returns no `total`. Server and Data Center sites still call `/search` and use `total` as before, and a new mocked service test covers Cloud paging. Notice jira-cloud-change-2046-search-jql about atlassian.net's API describes the change. It was read from a file and is not signed by the provider.
Contributor
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed in the API
Notice
jira-cloud-change-2046-search-jqlaboutatlassian.net's API describes this change, published 2024-10-31 and effective 2025-05-01. It is not signed byatlassian.net: it was read from a file the person running Tiltmeter trusts.The notice's summary:
GET https://your-domain.atlassian.net/rest/api/2/search$GET https://your-domain.atlassian.net/rest/api/2/search/jql$.total$.maxResults$.startAtPOST https://your-domain.atlassian.net/rest/api/2/search$POST https://your-domain.atlassian.net/rest/api/2/search/jql$.total$.maxResults$.startAtThe notice's notes:
What this pull request changes
JiraSprint now calls
/rest/api/2/search/jqlfor Jira Cloud sites (*.atlassian.netandapi.atlassian.com/ex/jira), because Cloud removed/rest/api/2/searchin CHANGE-2046. On Cloud it followsnextPageTokenuntilisLastand counts the issues itself, since the new endpoint returns nototal. Server and Data Center sites still call/searchand usetotalas before, and a new mocked service test covers Cloud paging.services/jira/jira-sprint.service.jsservices/jira/jira-sprint.tester.jsLeft for a human
/searchendpoint and get 410 Gone.jira-sprint.tester.jsis mocked with nock, and it only runs in CI when the PR title includes [JiraSprint].This pull request was generated automatically by Tiltmeter from the unsigned notice
jira-cloud-change-2046-search-jqlabout atlassian.net's API. An AI agent (Claude Code with claude-opus-5-5) wrote these edits; review them like any other change.