Skip to content

Add Jira task provider support - #2238

Merged
nwparker merged 4 commits into
mainfrom
nwparker/jira
Jun 2, 2026
Merged

nwparker merged 4 commits into
mainfrom
nwparker/jira

Conversation

@nwparker

@nwparker nwparker commented May 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Add Jira as a task provider with connection, site selection, issue listing/search, issue creation, and issue workspace support.
  • Wire Jira through IPC, runtime RPC, preload APIs, renderer store, settings, and task provider visibility.
  • Rebase provider availability on current main so GitLab and Linear availability gating stays intact while Jira remains visible for first-time setup.

Validation

  • pnpm run typecheck
  • pnpm run lint
  • pnpm exec vitest run --config config/vitest.config.ts src/shared/task-providers.test.ts src/main/runtime/rpc/methods/jira.test.ts src/main/ipc/register-core-handlers.test.ts src/main/persistence.test.ts src/renderer/src/store/slices/ui.test.ts src/renderer/src/store/slices/settings.test.ts src/renderer/src/store/slices/diffComments.test.ts src/renderer/src/store/slices/tabs.test.ts src/renderer/src/store/slices/store-session-cascades.test.ts

Fixes #1310

@P-de-Jong

Copy link
Copy Markdown
Contributor

So i checked this out and here some initial findings:

  • Connecting works perfect

  • Searching and viewing issues works great

  • When starting a workspace from an issue, it shows the linear logo
    image

  • Issue creation doesn't work for me. A few things:

    • I feel like the project list is incomplete. I can't see all project is expect to see. I know for a fact i have access with the current token since I use this token for in some other applications.
    • No matter which project i select, the issue type stays greyed out:
      image

Also we have lots of custom fields etc. for certain projects, they should probably all be displayed here dynamically since some of them are required for creating issues. Issue creation in Orca isn't important for me here to be honest, so this doesn't really matter for me.

@nwparker nwparker added the risk:high High risk change label May 30, 2026
@nwparker

Copy link
Copy Markdown
Contributor Author

Thanks again @P-de-Jong for the detailed testing notes. I pushed another round of fixes that should cover the issues you called out:

  • Jira project loading now pages through the full project list.
  • Issue type loading uses Jira create metadata, so it should no longer stay disabled incorrectly.
  • Jira create now loads required project/issue-type fields and submits those values.
  • Starting a workspace from a Jira issue now preserves Jira provider metadata, so it should show the Jira icon instead of Linear.

Would you be able to test this again when you get a chance?

@nwparker

Copy link
Copy Markdown
Contributor Author

Leaving this open and unmerged in this PR-closer pass.

Current status:

  • Not stale: current origin/main does not contain Jira provider support beyond a Jira coming-soon onboarding row.
  • GitHub reports the branch as conflicting/dirty, despite the stale verify check passing on the old head.
  • This is still high risk and very broad: Jira IPC/client/issues, runtime RPC, persistence, preload APIs, renderer task page/workspace/store/settings/sidebar, new shared types, and task-provider availability.

This needs a dedicated rebase/design review pass plus current provider-specific validation and UI/Electron evidence before any risk-lowering or merge decision.

@P-de-Jong

Copy link
Copy Markdown
Contributor

Seems to work great now! Only nitpick I would have is that the project select has quite some options in it. Would be nice to have an autocomplete/combobox there. Also the list of projects is not sorted A-Z it seems.

Rest looks great!

@nwparker

nwparker commented Jun 1, 2026

Copy link
Copy Markdown
Contributor Author

@P-de-Jong thanks again for testing and for the nit. I pushed an update that changes the Jira create-project picker to a searchable combobox and sorts projects A-Z by project name. I verified it locally in Electron against a mock Jira site as well. Could you test the updated branch again when you have a minute?

@P-de-Jong

Copy link
Copy Markdown
Contributor

@nwparker works great!

@nwparker
nwparker merged commit d0904c9 into main Jun 2, 2026
1 check passed
@nwparker
nwparker deleted the nwparker/jira branch June 2, 2026 02:04
OrcaWin added a commit to giraphant/orca that referenced this pull request Jul 27, 2026
The PR correctly identified that TaskResumeState's strict Zod guard was
missing linearMode/linearContext/jiraPreset/jiraQuery, so any paired
web/mobile/relay client that opened Linear or Jira had its ENTIRE ui.set
payload rejected with invalid_argument. That part is verified and kept.

The same drift existed at the UiUpdate level and the PR did not cover it.
Eight more keys the renderer writes through ui.set were unlisted:

- activeView, written by App.tsx on every top-level view switch (stablyai#9002)
- showDotfilesByWorktree, which rides App.tsx's 150ms debounced writer, so
  a single dotfile toggle dropped sidebar widths, sort/group prefs, repo
  filters and agent acknowledgements for that client
- setupGuideSidebarDismissed, setupGuideBrowserMilestoneMigrated,
  setupGuideBrowserMilestoneLegacyComplete, browserImportHintHidden,
  mobileEmulatorTabIntroDismissed, mobileEmulatorAgentSetupDismissed

Root cause is that schema/type parity was maintained by hand with nothing
enforcing it, so this recurred across stablyai#3966, stablyai#2238, stablyai#9002 and others.
AssertNoMissingKeys now turns a field added to PersistedUIState or
TaskResumeState without a schema entry into a typecheck error naming the
missing key. Main-owned state (star-nag, tray notice, popout bounds) is an
explicit allow-list, so remote clients still cannot write it — the existing
"rejects star-nag persisted state mutations" tests still pass.

Split TaskResumeState into its own module and the assertion helper into
ui-state-schema-parity.ts to stay under max-lines without a disable.

Tests: one case per drifted field plus the full App writer payload; 14 fail
when the schema is reverted, all pass with it.
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk:high High risk change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: JIRA integration

2 participants