update_issue can't change issue priority

Offen
#2,154 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
74/100
Issue-Typ
Feature
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
typescript
Bereich
api, backend

Rechercherichtung

Start with packages/mcp-core/src/tools/catalog/update-issue.ts to trace the input schema and handler, then follow the request through packages/mcp-core/src/api-client/client.ts and the referenced Sentry API priority handling. Add priority support to the update path and account for the API's 400 response when the issue type disallows manual priority changes. Done when an agent can set low, medium, or high priority without changing status or assignment, and unsupported issue types return a clear error.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

update_issue has no priority input, so agents can't set an issue's priority (low/medium/high) without also changing status or assignment. Reported through MCP user feedback (Cursor, server 0.42.0): an agent asked to set an issue's priority to low was blocked.

  • The input schema has no priority field (packages/mcp-core/src/tools/catalog/update-issue.ts:908-925), and the handler rejects any call without status or assignedTo (update-issue.ts:951-955; hint at :896).
  • ApiService.updateIssue doesn't send priority either (packages/mcp-core/src/api-client/client.ts:4114-4140).
  • The Sentry API already supports it on the issue PUT endpoint: GroupValidator.priority is a ChoiceField over PriorityLevel (getsentry/sentry src/sentry/api/helpers/group_index/validators/group.py:53-60), and update_groups applies it with handle_priority, which also sets priority_locked_at (src/sentry/api/helpers/group_index/update.py:256-270, :1021-1037).
  • The API returns 400 "Cannot manually set priority of one or more issues." for issue types without enable_user_status_and_priority_changes (update.py:257-263).

Feedback: MCP-SERVER-GND

via Sentry.

--

View Session [Sentry]

Vorherrschende Sprache
TypeScript
Sterne
961
Forks
179
Ø Merge
15 Std. 33 Min.
Gemergte PRs (30 T.)
476

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus getsentry/toolkit

Alle Issues in getsentry/toolkit

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.