Skip to content

fix(jira): collect required fields before changing status - #28588

Merged
nwparker merged 13 commits into
mainfrom
nwparker/jira-transition-fields
Oct 14, 2026
Merged

nwparker merged 13 commits into
mainfrom
nwparker/jira-transition-fields

Conversation

@nwparker

@nwparker nwparker commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 10 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​848 $\color{#cf222e}{\Huge{\mathbf{−}}}$​10 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​838
Prod 21 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​699 $\color{#cf222e}{\Huge{\mathbf{−}}}$​164 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​535

ELI5

Closing a Jira issue can require a reason and a comment. Orca now asks for those before changing the status, instead of briefly changing it and failing.

What Changed

Status changes load Jira’s required-field information. Simple changes still take one selection; resolution/comment requirements open a small form and are sent together with the status change. Other required fields are named with an Open in Jira action. Loading failures show an error and Retry; save failures stay visible. A successful transition comment appears in the open timeline. Switching Jira host, project, account, or provider identity discards any open transition form, even when the issue key and site are unchanged.

Older Jira servers can fall back to a basic transition list. New field submissions require an advertised remote-host capability, so older Orca servers cannot silently drop them.

Why

Jira validates required fields in the transition request. Collecting them before submission handles the common corporate workflow without guessing defaults or implementing every custom Jira field. The reusable form can also support board moves.

Adapted the classification and request/form design from #10651 by Wooseong Kim (@innocarpe), updated for current modules and design primitives. His contribution is credited in the commit trailer. This PR adds strict allowed-value checks, missing-choice fallback, a remote capability gate, and rendered regression coverage.

Linked Issue

Fixes #10565

Visual Proof

Captured through Playwright CDP in this branch’s hidden Electron renderer on macOS. Screens use labeled Jira fixtures and real Orca components; they do not claim a live Jira account test. The before component comes from the base commit.

Before — Close only sends the status choice:

Before

After — required resolution and comment:

After form

Unsupported field and retryable load error:

Unsupported field
Retry in light mode

Testing

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

All 143 focused tests pass across 13 suites. Coverage includes required-field classification and allowed choices, Cloud/Server payloads, basic-list fallback, strict and legacy read failures, RPC parsing and older-host capability checks. The composed issue preview retains queued optimistic edits, protected hydration, rollback, same-issue transition retention after failed reloads, StrictMode replay, and late-reply rejection after host changes or close/reopen. A comment submitted with a transition refreshes the open timeline; normal and reopened-issue regressions prevent earlier comment hydration from overwriting it.

The changed-code quality gate passes for 28 source files, including design rules and checked types. Focus reads are 1108 with no baseline increases. RPC generation, English runtime catalog, localization catalog, extraction and coverage checks pass. Node and renderer compiler checks pass for corrected commit 7712b00 with stable source hashes. Final current-main composition compiler checks are pending.

The original hidden Electron flow selected a resolution, entered a comment, submitted, and rendered Done; unsupported requirements and light-mode Retry were inspected. All 37 fresh hidden Electron checks pass on corrected commit 7712b00. A rejected save retains resolution and comment while metadata reloads or fails; Retry resubmits both without re-entry. Success keeps Done and adds the timeline comment even if issue refresh fails, and late initial comments cannot overwrite it. Unsupported fields, metadata Retry, captured owner/site, and subsequent optimistic title saves were exercised. All seven UI modules remain byte-identical after the final current-main catalog composition; 27 of the proof’s 29 source hashes match. The remaining changes add the landed status-filter type and list entry point, leaving detail/transition calls unchanged. Fixtures use real Orca components with simulated Jira responses. A live corporate Jira workflow, packaging, and native Windows/Linux validation remain untested locally.

AI Disclosure

Review

Merge risk: low, pending final compiler checks. The transition branch now includes the landed optimistic queue and current main. Required unsupported fields fall back to Jira, Server comments retain REST v2 text, and the remote capability gate prevents mixed-version field loss. Required-field retry and timeline behavior pass fresh rendered checks and independent review. CI is queued; local checks do not claim CI success.

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Uses existing UI primitives and tokens; no platform-specific paths or shortcuts. Site and source context travel through existing local/SSH runtime routing. Folder workspaces and git-provider behavior are unaffected. Wire additions are optional and field submissions are capability-gated. This does not add a mobile-only editing surface. New strings have English catalog entries with existing locale fallback.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

Adapt required transition metadata and resolution/comment handling from #10651 onto current Jira modules. Keep unsupported fields actionable, surface retryable load failures, and prevent old remote hosts from silently dropping transition fields.

Co-authored-by: Wooseong Kim <[email protected]>
@coderabbitai

coderabbitai Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 3 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 628209fb-b40f-402d-ab15-621a07b9c9db
📥 Commits

Reviewing files that changed from the base of the PR and between 0c05e6d and 0950776.

📒 Files selected for processing: 32
  • src/main/ipc/jira.ts
  • src/main/jira/jira-issue-mapping.ts
  • src/main/jira/jira-issue-mutations.ts
  • src/main/jira/jira-transition-queries.ts
  • src/main/jira/jira-transition-required-fields.test.ts
  • src/main/runtime/rpc/methods/jira.test.ts
  • src/preload/api/jira-api.ts
  • src/preload/api/jira-bridge.ts
  • src/renderer/src/components/JiraIssueWorkspace.optimistic-edit.test.tsx
  • src/renderer/src/components/JiraIssueWorkspace.transition-source.test.tsx
  • src/renderer/src/components/JiraIssueWorkspace.tsx
  • src/renderer/src/components/jira-issue-mutation-queue.ts
  • src/renderer/src/components/jira-issue-transition-control.test.tsx
  • src/renderer/src/components/jira-issue-transition-control.tsx
  • src/renderer/src/components/jira-issue-workspace-chrome.tsx
  • src/renderer/src/components/jira-issue-workspace-request-lifetime.test.tsx
  • src/renderer/src/components/jira-transition-fields-form.tsx
  • src/renderer/src/components/use-jira-issue-comments.ts
  • src/renderer/src/components/use-jira-issue-mutation-state.ts
  • src/renderer/src/components/use-jira-issue-remote-details.ts
  • src/renderer/src/components/use-jira-issue-transitions.ts
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/runtime/runtime-jira-client.test.ts
  • src/renderer/src/runtime/runtime-jira-client.ts
  • src/renderer/src/runtime/runtime-jira-detail-client.test.ts
  • src/renderer/src/runtime/runtime-jira-detail-client.ts
  • src/shared/jira-transition-fields.test.ts
  • src/shared/jira-transition-fields.ts
  • src/shared/jira-types.ts
  • src/shared/protocol-version.ts
  • src/shared/rpc-contract/jira-params.ts
  • src/shared/rpc-contract/jira-transition-update.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nwparker
nwparker merged commit eb1ee8f into main Oct 14, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Support Jira transitions with required fields (resolution on Close, etc.) — currently they fail with only a raw API toast

1 participant