Skip to content

feat(issue): view multiple issues in one invocation - #1609

Draft
betegon wants to merge 1 commit into
mainfrom
feat/issue-view-batch
Draft

betegon wants to merge 1 commit into
mainfrom
feat/issue-view-batch

Conversation

@betegon

@betegon betegon commented Sep 21, 2026

Copy link
Copy Markdown
Member

Summary

sentry issue view now accepts multiple IDs in one invocation, the same way event view already does: space-separated args, newline-separated tokens inside a single arg, bounded parallel fetches, and JSON that stays a flat object for one ID and becomes an array when more than one was requested.

The shared issueIdPositional tuple is unchanged, so explain / plan / resolve / unresolve / archive / events stay single-id. Commas are not split (they can be part of a value). --web still opens only the first issue.

Test plan

  • sentry issue view FRONT-ABC --json still returns a single object (shortId at the top level)
  • sentry issue view FRONT-ABC BACK-2 --json returns a 2-element array
  • sentry issue view $'FRONT-ABC\nBACK-2' --json matches two separate args
  • sentry issue view FRONT-ABC,BACK-2 is treated as one identifier, not two
  • sentry issue view A B -w opens only A and warns that extras are ignored
  • sentry issue explain A B is still single-id (shared positional untouched)

Made with Cursor

Agents currently loop `issue view` per ID. Match `event view` with
space-separated/newline IDs and a JSON array only for multi-id calls,
without changing the shared single-id positional used by explain/plan/resolve.

Co-authored-by: Cursor <cursoragent@cursor.com>
@vercel

vercel Bot commented Sep 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
cli Ready Ready Preview Sep 21, 2026 3:01pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
sentry-local Skipped Skipped Sep 21, 2026 3:01pm UTC

Request Review

@BYK

BYK commented Sep 21, 2026

Copy link
Copy Markdown
Member

sentry issue view A B -w opens only A and warns that extras are ignored

I'd say it should open all up to a limit and the limit can be bypassed with -f

@BYK

BYK commented Sep 21, 2026

Copy link
Copy Markdown
Member

sentry issue explain A B is still single-id (shared positional untouched)

I'd also make this support multiple issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants