Set an issue's severity
Use this to record how severe a bug issue is on its triage board’s
Severity field.
Prerequisites
Section titled “Prerequisites”- The board already has a
Severityfield — run ensure_severity_field first if you haven’t. - The issue is already an item on that board (native Projects v2 auto-add workflows usually place it there shortly after filing).
-
Call:
set_severity {owner: "<owner>",repo: "<repo>",issueNumber: <n>,projectOwnerLogin: "<org-or-user>",projectNumber: <n>,severity: "Critical" | "High" | "Medium" | "Low"} -
On success you get back
{ itemId, fieldId, optionId, severity }. -
Handle known failure codes:
missing_scope— the token lacks theprojectOAuth scope required for this Projects v2 mutation.issue_not_on_board— the issue isn’t a project item yet. Wait for auto-add or add it explicitly viagithub-sdlc-planning’s tools, then retry.missing_field— the board has noSeverityfield. Run ensure_severity_field first.missing_option— you passed a severity string that doesn’t match one of the field’s option names exactly; the error’savailablelist shows the valid options.
See also
Section titled “See also”- reference/tools.md — full input schema and error codes.
- how-to/get-lifecycle-state.md — to check an issue’s status alongside its severity.