Repository navigation
Adapt to the atlassian.net API change effective 2025-05-01 - #1453
Open
torrresagus wants to merge 2 commits into
Open
torrresagus wants to merge 2 commits into
torrresagus wants to merge 2 commits into
Conversation
Jira Cloud has removed `/rest/api/2/search`. Sites on `*.atlassian.net` and `api.atlassian.com/ex/jira` now use `/rest/api/2/search/jql`, which pages with `nextPageToken` and ends on `isLast`. Server and Data Center sites keep the old `startAt`/`total` paging unchanged. The Cloud path still sends the explicit fields and changelog expand, refuses to confirm a checkpoint if it gets an empty page or no token before the last page, and has new tests. 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. Signed-off-by: Agustin Torres <agustintorres2001@gmail.com>
torrresagus
force-pushed
the
fix/jira-search-jql
branch
from
October 27, 2026 14:36
60293fb to
fd6b395
Compare
WaylandYang
approved these changes
Oct 29, 2026
WaylandYang
left a comment
Contributor
There was a problem hiding this comment.
Thanks — Cloud-only switch, token paging and the early-end guard look right. Merging; I'll update the docs' note on Jira's total (sources.md, ADR 0072) separately.
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$.startAt$.total$.maxResultsPOST https://your-domain.atlassian.net/rest/api/2/search$POST https://your-domain.atlassian.net/rest/api/2/search/jql$.startAt$.total$.maxResultsThe notice's notes:
What this pull request changes
Jira Cloud has removed
/rest/api/2/search. Sites on*.atlassian.netandapi.atlassian.com/ex/jiranow use/rest/api/2/search/jql, which pages withnextPageTokenand ends onisLast. Server and Data Center sites keep the oldstartAt/totalpaging unchanged. The Cloud path still sends the explicit fields and changelog expand, refuses to confirm a checkpoint if it gets an empty page or no token before the last page, and has new tests.crates/utopia-server/src/jira_issues.rsLeft for a human
cargo fmt --all --check,cargo clippy --workspace --all-targets -- -D warningsandcargo test --workspacebefore merging.git commit -s) and a PR againstdevrather thanmain. Edits can't do either; whoever commits and opens the PR needs to.isLast, it is read as false. Then a page with nonextPageTokenfails loudly instead of ending the sync. That is safe for checkpoints, but it has not been checked against a live Cloud site.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.