Repository navigation
feat(issue): accept priority as numeric ID via --priority-id - #149
Merged
Merged
Conversation
--priority always sent {"name": ...}, which instances reject whose
priorities only address by ID. --priority-id sends {"id": ...} on
create issue and issue update; the options are mutually exclusive and
the default path is unchanged.
A numeric-value heuristic (digits mean id) was considered and rejected:
on instances whose priorities are literally named "1".."4" a numeric
value is ambiguous, and silently changing its meaning would break
exactly the usage that works today.
A rejected priority no longer dies in a generic "Invalid issue data":
on a 400 involving a priority, the error lists the values the instance
actually offers (best-effort read; a failing lookup never masks the
original error).
Closes #136
Regenerate .claude/ai-usage-prompt.md after --priority-id.
f3rdy
force-pushed
the
feat/136-priority-id
branch
from
October 21, 2026 12:23
99cd27b to
14730e7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why (from #136)
--priorityis always sent as{"name": ...}. That only works on instances whose priorities address by name; others expect{"id": "3"}— a known stumbling block in the affected customer team's own Jira skill.What
--priority-id IDoncreate issueandissue updatesends{"id": ...}; mutually exclusive with--priority.Invalid issue data: on a 400 involving a priority, the error lists the values the instance actually offers (best-effortpriorities()read; a failing lookup never masks the original error).Design decision: explicit flag, not a numeric heuristic
The ticket sketched "purely numeric value →
{"id": ...}, else{"name": ...}(or an explicit--priority-id; decide in repo context)". The explicit flag won, because the measuring instance itself names its priorities literally1..4: there a numeric value is ambiguous, and a heuristic would silently change what working calls send — breaking the rule that defaults preserve today's behaviour for exactly the users the feature is for.Default / compatibility
Unchanged: without
--priority-ideverything is sent as before, and no heuristic re-interprets existing--priorityvalues.Tests
--priority-idreaches the service on create and update; conflict with--priorityexits 1 without constructing a client.budjira ai usage-prompt --plainoutput checked; regenerated prompt committed separately.Note: this touches the same
create/updateregion inservices/issues.pyas #147 (--dry-run payload builders). Whichever merges second gets a small rebase — offered as part of the session.Closes #136