update_issue can't change issue priority

Open
#2,154 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
74/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript
Domain
api, backend

Research direction

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.

Written by the indexing model from the issue text.

Description

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]

Dominant language
TypeScript
Stars
961
Forks
179
Avg merge
15h 33m
Merged PRs (30d)
476

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from getsentry/toolkit

All issues in getsentry/toolkit

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.