Repository navigation
Conversation
Jira Cloud's /rest/api/3/search/jql endpoint rejects unbounded queries, so selecting the All filter on a Cloud site failed with "Unbounded JQL queries are not allowed here" (stablyai#23617). The Assigned, Reported, and Done filters restrict on currentUser() and were unaffected. The All filter's JQL is now given an updated >= -90d bound when sent to Cloud sites; Server/DC's classic /search still accepts unbounded queries and keeps the original JQL, as do caller-provided JQL strings. Fixes: stablyai#23617 Generated-by: GLM-5.3-Flash (ZCode)
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe “all” filter adds an Priority: ➖ Normal Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to The Jira Cloud All filter is bounded without changing Server/DC searches or custom queries. No actionable merge-blocking risk remains after normal checks. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to Jira Cloud’s All filter is narrowed to recent issues without changing site access or credentials. An identical custom query is also narrowed, however, despite the intended custom-query behavior. Retained concerns
Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Linked Issues checkExplanation The PR satisfies the unbounded Jira Cloud All-filter objective in [
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 065afd62-a4c5-44b0-b6de-203517cfcde4
📒 Files selected for processing (2)
src/main/jira/issues.test.tssrc/main/jira/jira-issue-search.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Per-site JQL bound for the All filter —
searchIssuesnow routes the All filter's JQL through the newjqlForSite, which swaps inresolution = Unresolved AND updated >= -90d ORDER BY updated DESCwhen the target site'sauthType !== 'server'. Server/DC keeps the unbounded query on classic/search. - Caller JQL and other filters untouched —
filterToJql('all')returns the sharedALL_ISSUES_JQLconstant, andjqlForSiteonly rewrites that exact string, so Assigned/Reported/Done and caller-provided JQL pass through unchanged. - Three focused unit tests — Cloud All gets the bound, Server All stays unbounded, and a caller-provided JQL string is not rewritten. All 33 tests in
issues.test.tspass andoxlintis clean on both changed files.
The bound covers every entry point (listIssues, IPC, runtime-jira-commands) since they all funnel through searchIssues. The 90-day truncation of All on Cloud is the tradeoff the linked issue explicitly accepted, so no concern there. No live Cloud reproduction was possible, but the test assertions would fail without the new helper, so the coverage is real.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
…JQL text
CodeRabbit review follow-up: the string-equality check could not tell the
All filter's JQL from a caller-provided searchIssues string that happens
to be identical, and would have added the 90-day bound to the latter.
searchIssues now takes an explicit boundAllForCloud flag that only
listIssues('all') sets, so caller-provided JQL is never rewritten.
Regression test added: caller passing the exact All filter string to a
Cloud site stays untouched.
|
Fixed in 1a6288e: |
|
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Reviewed the delta since the prior pullfrog review (9947713): commit 1a6288e replaces JQL-text matching with an explicit filter-origin flag. Everything below is grounded in the current head (1a6288e).
- Explicit All-filter origin —
listIssuesnow passesfilter === 'all'as a newsearchIssuesargument, which threadsboundAllForClouddown tojqlForSite; the Cloud recency bound is no longer inferred from the JQL string. - Caller JQL preserved by construction — direct
searchIssuescallers defaultboundAllForCloudtofalse, so a caller-provided JQL that happens to equal the All-filter string reaches Jira unwritten. - Regression test added — a unit test drives
searchIssueswithresolution = Unresolved ORDER BY updated DESCand asserts Jira receives it unchanged; it fails against the old string-equality matcher.
Verified locally: vitest run src/main/jira/issues.test.ts → 34 passing, oxlint on both changed files → 0 warnings/0 errors, and check-max-lines-ratchet → OK.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
|
Fair concern — noted as a deliberate tradeoff rather than an oversight. The unbounded query is rejected outright by Jira Cloud (the 400 in #23617), so the alternatives are "all open issues visible, feature broken" vs "last 90 days visible, feature working". The 90-day window is one of the bounds suggested in the issue itself; the complete fix (per-repository project mapping so the query is bounded by project instead of by date) is the feature-request half of #23617 and needs a maintainer decision on UX shape. Happy to switch the bound or implement the project mapping if maintainers prefer. |
|
Friendly ping — this has been open for a few days without a reviewer look yet. Happy to adjust anything or provide more detail if useful. Thanks! |
Reference the Cloud unbounded-query investigation in #23645 while preserving older open work with project restrictions. Co-authored-by: ggbdpq <[email protected]>
|
Thanks @nwparker for taking the Cloud All diagnosis forward in #28579, with the commit credit included — much appreciated. The project-bounded search with per-batch project IDs is the better shape: as the PR body lays out, a 90-day recency cutoff makes the 400 disappear by hiding older open tickets, and the full project discovery preserves exactly the work this PR's window would have hidden. Closing this PR in favor of #28579. |

ELI5
On Jira Cloud, selecting the All filter in the Jira task list failed with an "Unbounded JQL queries are not allowed here" error. Jira Cloud refuses search queries that carry no restricting clause, and All was the only filter that sent one. All now adds an "updated in the last 90 days" restriction when talking to a Cloud site, so the filter works again.
What Changed
resolution = Unresolved ORDER BY updated DESC) is now sent asresolution = Unresolved AND updated >= -90d ORDER BY updated DESCwhen the target site is Jira Cloud, via a newjqlForSite()helper applied per site insearchIssues(src/main/jira/jira-issue-search.ts)./searchendpoint accepts it), and caller-provided JQL strings pass through untouched on every site type.Why
Jira Cloud's
/rest/api/3/search/jqlendpoint rejects unbounded queries with a 400, so the All filter was broken on every Cloud site. The Assigned, Reported, and Done filters restrict oncurrentUser()and were unaffected. Of the alternatives raised in the issue — bounding by the user's selected projects (needs a new project-mapping feature) or hiding All on Cloud sites — a recency bound is the smallest change that makes All work today without new settings or UI behavior changes.Linked Issue
Fixes #23617
Visual Proof
N/A — no UI change; the fix is a request-payload difference that restores the existing All filter on Cloud sites.
Testing
vitest run src/main/jira/issues.test.tsvitest run src/main/jira/(directory)pnpm typecheckoxlinton the two changed filesVerified with automated tests only; no live Jira Cloud instance was available locally, so the 400 reproduction comes from the issue report. The full
pnpm lint/pnpm test/pnpm buildsuite was not run locally — CI will cover it.AI Disclosure
Implementation and this PR description were drafted with GLM-5.3-Flash (ZCode) coding-agent assistance under human direction and review.
Review
Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
No security, cross-platform (Linux/Windows/macOS), remote SSH, mobile, backwards-compatibility, or performance impact expected: the change only alters the JQL payload for the All filter on Jira Cloud sites.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)