Repository navigation
Conversation
…ine breaks The Jira issue sheet could only change title, labels, status, priority, assignee and comments. It now reads the issue's edit screen (editmeta) with current values and edits text, number, date, datetime, single/multi select (options, components, versions), user and string-array fields, plus the description. Cloud bodies are now built from Markdown (remark + GFM) instead of one paragraph per line, so a single newline becomes a hard break and Jira shows comments the way Orca renders them. Rich text that cannot round-trip through Markdown (media, mentions, panels, colors, tables) stays read-only with an "Edit in Jira" link. Older remote hosts strip unknown update keys, so edit fields are gated on the new jira.issue-edit-fields.v1 capability.
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
Walkthrough
Severity of issue fixed: Medium Merge Risk:
|
…a-issue-edit-fields # Conflicts: # src/renderer/src/i18n/locales/es.json # src/renderer/src/i18n/locales/fr.json # src/renderer/src/i18n/locales/ja.json # src/renderer/src/i18n/locales/ko.json # src/renderer/src/i18n/locales/zh.json
|
Supplement: The original Jira API contains customfield_xxxx, but orca jira issue --json does not return it; hope that orca jira cli supports selecting fields or outputting raw fields. |
jira.getIssueEditFields accepts an optional includeRaw flag. With it, each field also carries rawValue: the value exactly as Jira returned it (ADF on Cloud, wiki text on Server/DC, null when unset). The issue sheet does not ask for it, so its payload is unchanged.
orca jira field list <key> prints the fields on the issue's edit screen with their current values. --json returns each field's id, name, schema, normalized value and rawValue, so agents can read customfield_* values that orca jira issue does not return. Hosts without jira.issue-edit-fields.v1 are refused before any Jira request.
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
6bbe6a55-4444-4467-8f0a-0b28aa202f68
⛔ Files ignored due to path filters: 1
src/shared/rpc-contract/rpc-params-catalog.generated.tsis excluded by!**/*.generated.*
📒 Files selected for processing: 17
skill-guides/orca-jira.mdsrc/cli/bundled-skill-guides.tssrc/cli/handlers/jira.tssrc/cli/index-jira.test.tssrc/cli/jira-command-surface.test.tssrc/cli/jira-format.tssrc/cli/jira-handler-group.tssrc/cli/jira-target.tssrc/cli/specs/jira.tssrc/main/jira/jira-issue-edit-field-values.tssrc/main/jira/jira-issue-edit-fields.test.tssrc/main/jira/jira-issue-edit-fields.tssrc/main/runtime/rpc/methods/jira.test.tssrc/main/runtime/rpc/methods/jira.tssrc/main/runtime/runtime-jira-commands.tssrc/shared/jira-types.tssrc/shared/rpc-contract/jira-params.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
|
Thanks @yingyingqiqi, good catch. I added orca jira field list ENG-123 --jsonEach field has its id ( One limit: Jira's editmeta only lists fields the account can edit, so fields outside the edit screen won't appear. Picking arbitrary fields by id from |
The host set `writable` from Jira's `set` permission alone, so a Sprint or a cascading select with `set` came back writable and `orca jira field list` dropped its read-only marker, while the issue sheet already showed it read-only. The schema-to-editor rule moves to `src/shared` so the host and the sheet agree: a field is writable only when Orca has an editor for its schema and could read its value.
…a-issue-edit-fields # Conflicts: # src/main/ipc/jira/register-handlers.ts
…a-issue-edit-fields # Conflicts: # src/cli/handlers/jira.ts # src/cli/index-jira.test.ts # src/main/jira/jira-issue-mapping.ts # src/main/jira/jira-issue-mutations.ts # src/renderer/src/components/JiraIssueWorkspace.tsx # src/renderer/src/runtime/runtime-jira-detail-client.ts
…a-issue-edit-fields # Conflicts: # src/cli/jira-command-surface.test.ts
…a-issue-edit-fields # Conflicts: # src/cli/handlers/jira.ts
…a-issue-edit-fields # Conflicts: # src/main/ipc/jira/ipc-params.ts
…a-issue-edit-fields # Conflicts: # src/cli/bundled-skill-guides.ts
There was a problem hiding this comment.
Actionable comments posted: 2

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
eaa2ad1b-e657-47cc-9aed-60668cc291e0
Files ignored due to path filters: 1-
src/shared/rpc-contract/rpc-params-catalog.generated.tsis excluded by!**/*.generated.*
Files selected for processing: 34-
src/cli/bundled-skill-guides.tssrc/cli/handlers/jira.tssrc/cli/index-jira.test.tssrc/main/ipc/jira/ipc-params.test.tssrc/main/ipc/jira/ipc-params.tssrc/main/ipc/jira/register-handlers.tssrc/main/jira/adf-markdown.tssrc/main/jira/jira-issue-edit-field-values.tssrc/main/jira/jira-issue-edit-fields.tssrc/main/jira/jira-issue-mapping.tssrc/main/jira/jira-issue-mutations.tssrc/main/runtime/rpc/methods/jira.tssrc/renderer/src/components/JiraIssueWorkspace.edit-fields.test.tsxsrc/renderer/src/components/JiraIssueWorkspace.tsxsrc/renderer/src/components/__mocks__/jira-issue-workspace-edit-fixture.tsxsrc/renderer/src/components/jira-edit-field-option-picker.tsxsrc/renderer/src/components/jira-issue-description-editing.tsxsrc/renderer/src/components/jira-issue-edit-field-control.tsxsrc/renderer/src/components/jira-issue-edit-field-drafts.test.tssrc/renderer/src/components/jira-issue-edit-field-drafts.tssrc/renderer/src/components/jira-issue-edit-fields-section.tsxsrc/renderer/src/components/use-jira-issue-edit-fields.tssrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/fr.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/pt.jsonsrc/renderer/src/i18n/locales/zh.jsonsrc/renderer/src/runtime/runtime-jira-client.test.tssrc/renderer/src/runtime/runtime-jira-detail-client.tssrc/shared/jira/jira-detail-capabilities.tssrc/shared/jira/jira-edit-field-editor.tssrc/shared/jira/jira-types.ts
Files skipped from review as they are similar to previous changes: 6-
- src/renderer/src/i18n/locales/en.json
- src/renderer/src/i18n/locales/fr.json
- src/renderer/src/i18n/locales/ko.json
- src/renderer/src/i18n/locales/es.json
- src/renderer/src/i18n/locales/zh.json
- src/renderer/src/i18n/locales/ja.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
-
Code blocks now use a fence longer than any backtick run in their text, so a ``` line inside the code no longer closes the block and Markdown edits keep it. A rich-text round-trip check that throws now marks only that field read-only instead of rejecting the whole edit-field list.
…a-issue-edit-fields # Conflicts: # src/renderer/src/runtime/runtime-jira-client.test.ts
…a-issue-edit-fields # Conflicts: # src/renderer/src/runtime/runtime-jira-client.test.ts
…a-issue-edit-fields # Conflicts: # src/main/ipc/jira/ipc-params.test.ts
…t-fields # Conflicts: # src/shared/rpc-contract/rpc-params-catalog.generated.ts
Use the Markdown to ADF converter main gained in stablyai#42242 instead of this branch's copy, move the edit-field components next to JiraIssueWorkspace after the task page reorganization, and expect list-like plain text to round-trip now that read-back escapes it.
ELI5
Orca's Jira issue panel could only change the title, labels, status, priority and assignee. Everything else meant opening Jira. Now the panel shows the fields Jira's own edit screen shows, with their current values, and you can change them in place, including the description. Agents using the
orcaCLI can read the same fields, custom fields included, withorca jira field list.What Changed
Before:
orca jira issue --jsonreturns Orca's fixed issue shape, so custom fields (customfield_*) cannot be read from the CLI.After:
orca jira field list <key>lists the same edit-screen fields.(read-only)when Orca cannot write it.--json: each field's id, name, schema, normalizedvalue, andrawValue, the value exactly as Jira returned it (ADF on Cloud, wiki text on Server/DC,nullwhen unset).Mechanism:
jira-issue-edit-fields.ts): readsGET /issue/{key}/editmeta, then reads only those fields' values (?fields=<keys>, so comments and attachments stay out).jira-issue-edit-field-values.tsturns them intoJiraEditFields. Archived versions and disabled options are not offered.jira-issue-edit-field-values.ts):jira.getIssueEditFieldstakes an optionalincludeRaw. With it,mapEditFieldaddsrawValueto each field. The sheet does not send it, so its payload is unchanged.src/cli/jira/jira.ts,jira-format.ts,jira-target.ts):jira field listresolves the issue and site like the other issue commands. A newcapabilityoption onresolveJiraTargetrequiresjira.issue-edit-fields.v1from the samestatus.getcall, so an older host is refused before any Jira request. It then callsjira.getIssueEditFieldswithincludeRaw: true. The bundledorca-jiraskill guide documents the command.adf-round-trip.ts): rich text iswritableonly when converting it to Markdown and back reproduces the same ADF. Both directions use the convertermaingained in fix(jira): retain Markdown when publishing comments and descriptions #42242 (adfToMarkdownText,markdownToAdf). The comparison ignores what Orca already drops when rendering: empty paragraphs and spaces at line edges.JiraIssueUpdategains optionalfields,userFieldKeysandrichTextFieldKeys.updateIssueshapes them the same waycreateIssuealready shapes user fields. Rich-text fields go through the sametoBodyTextas comments, so Cloud gets ADF and Server/DC gets wiki text. The dedicatedtitle,labelsandpriorityIdkeys win over the same field infields.jira.getIssueEditFields, plus IPC, preload and web client. New capabilityjira.issue-edit-fields.v1. Against a host without it, the renderer hides the section and refuses field writes, because older hosts' zod schemas strip unknown update keys and would report success without changing Jira.use-jira-issue-edit-fields.ts,jira-issue-edit-fields-section.tsx,jira-issue-edit-field-control.tsx,jira-issue-edit-field-drafts.ts,jira-edit-field-option-picker.tsx(Popover + Command, mirroringrepo-multi-combobox), andjira-issue-description-editing.tsx.mutateIssuequeue, then reload the fields. A settled status change reloads them too, because a new status can bring a different edit screen.Why
setis allowed. The create dialog already renders createmeta fields this way, and its option helpers are reused here.rawValueon request instead of always: the sheet reloads fields after every save and status change. Always sending raw ADF next to its Markdown would grow that payload over remote hosts for a value the sheet never reads.jira issueflag:jira issue --jsonkeeps its shape.field list <key>followscomment list <key>andstatus list <key>, and leaves room for a laterfield set.adfToMarkdownTextcannot express media, mentions or panels. Saving its output would silently delete them from Jira.Linked Issue
Fixes #29524
The CLI command also covers the review comment asking to read
customfield_*values fromorca jira.Visual Proof
A local e2e build (
electron-vite build --mode e2e) with Jira IPC responses mocked; no real Jira site. Windows 11. Captured with CDP from the hidden test window.Before (
main)After: fields section and description pencil
After: Components multi-select
After: description editor
The CLI command has no UI. Its text and JSON output are pinned in
jira-field-list.test.ts.Testing
Automated, on Windows 11:
adf-round-trip.test.ts: accepts formatting Orca can write back. Rejects media, mentions, panels, text color, and underline. Accepts plain text that reads as Markdown, since read-back escapes it.jira-issue-edit-fields.test.ts: Cloud and Server/DC editmeta, excluded and archived values, the lossy Cloud description, and strict and auth failures. Raw values only on request: Cloud ADF, Server/DC wiki text, andnullwhen unset. Edit-sheet writes: user and rich-text shaping, blank clears, dedicated keys win, and Server/DC wiki text.ipc-params.test.ts: edit-screen fields and their shaping keys survive IPC parsing, and malformed ones are refused before they reach Jira.jira-issue-edit-field-drafts.test.ts: editor choice, draft to payload, required-field guard, and datetime round trip.runtime-jira-detail-client.test.ts: hosts without the capability hide edit fields and refuse field writes.JiraIssueWorkspace.edit-fields.test.tsx: field save and reload, the description edit flow, the lossy description, and old hosts.rpc/methods/integrations/jira/jira.test.ts:includeRawreaches the runtime only when the caller sends it.jira-field-list.test.ts:jira field listsendsincludeRawfor the resolved site and key (including a browse URL), prints one line per field, and refuses a host without the capability after onlystatus.get.main(51a18b0): the Jira suites insrc/main/jira,src/cli/jira,src/main/ipc/jira, the Jira RPC methods, and the renderer Jira workspace and runtime client (24 files, 144 passed).pnpm typecheck(node, web, cli) exit 0.check-changed-code-quality.mjspasses. The RPC params catalog, bundled skill guides, skill bundle manifest, max-lines ratchet, and the localization catalog, extraction and coverage checks pass.Manual: drove the e2e build with mocked Jira responses to take the screenshots above (sheet, Components picker, description editor).
Not tested: a real Jira Cloud or Server/DC site, macOS, Linux, SSH.
AI Disclosure
Implemented with Claude Opus 5.5 (Anthropic) through Claude Code at my direction.
Review
includeRaware optional. The new read method is only called after the capability check, so an older host never receives it, and an older client never calls it.jira.issue-edit-fields.v1ships in this PR together withincludeRaw, so every host the CLI accepts understands it.PUT /issue/{key}the sheet already uses.rawValueholds the same Jira data the host already reads for the sheet, and the skill guide keeps treating issue fields as untrusted.rawValueis built only for callers that ask, today only the CLI.Known limits:
orca jira field listshows only the edit-screen fields this account can edit. Fields outside the edit screen still need Jira itself.Agent skill upstream boundary
Notes
The CLI command is in its own commits, so it can move to a follow-up PR as well.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)