Skip to content

[3557 by Claude Opus 5.5] Official plugin: Jira Cloud (start work from a ticket, keep the ticket in sync) - #3626

Merged
propr-dev[bot] merged 2 commits into
3542-epic-plugin-system-xu8from
3557/claude-opus-5-5-official-plugin-jira-clou-20261117-0122-3s3
Nov 17, 2026
Merged

propr-dev[bot] merged 2 commits into
3542-epic-plugin-system-xu8from
3557/claude-opus-5-5-official-plugin-jira-clou-20261117-0122-3s3

Conversation

@propr-dev

@propr-dev propr-dev Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #3557

Branch: 3557/claude-opus-5-5-official-plugin-jira-clou-20261117-0122-3s3
Commits: ✅ Changes committed (12ca248)


AI Processing Completed

Execution Details:

Summary:
I've built the Jira Cloud plugin in packages/plugins/jira/ and added the docs page. Everything I ran passes, but I did not test against a real Jira site, and I did not run the full repository suite or the existing Plugins Playwright specs.

How it works

  • Webhooks, not polling. Atlassian documents a secret for administrator-registered webhooks: Jira signs each request in X-Hub-Signature (sha256= plus the HMAC of the body). ProPR checks it with the existing hmac-sha256 scheme before any plugin code runs. X-Atlassian-Webhook-Identifier stays the same across Jira's retries, so I use it as the delivery id and a repeat is refused. Because of this I did not build the polling fallback or a schedule subscription kind; the README explains the choice.
  • Hand-off. A ticket created with the trigger label, or updated so the label is added, is read back by id from the configured site. If its project is mapped to one repository, it creates one GitHub issue. This reuses the shared Linear helper, so de-duplication, quoting and inert @mentions behave the same.
  • Description conversion. Jira's rich-text description is converted to Markdown in jira/adf.ts:
    • Headings, lists, quotes, code and tables come only from the document's structure.
    • Markdown punctuation in ticket text is escaped, so text cannot create an image or a link.
    • Images and attachments become "(attachment not copied)".
    • Only http(s) URLs are kept, and only as text.
    • Macros and app content are dropped.
  • Sync back. The same six switchable comments, posted in Jira's own comment format. Status moves use the ticket's workflow transition to the configured status name. If no transition reaches that status, a warning appears in Activity and the comment and later events still go ahead. A ticket already in the status is left alone.
  • Choices. Projects load from Jira, paged up to 250. Statuses load from the workflows of the mapped projects, so the project mapping has to be saved first.
  • Agent context. Only the jira-ticket skill. Atlassian's MCP server is left out: it takes OAuth, or a personal API token only as Basic auth where an organisation admin enables it, and ProPR sends MCP credentials only as Bearer. The README and docs page say this.

Platform changes

  • Basic auth: a token connection can declare "authorization": "basic". The value is entered as email:token, and a value without that shape is refused when set. It is sent as Authorization: Basic …, and the whole value, its header form and the token part on its own are all redacted.
  • Allowed hosts for URL settings: a URL setting can declare hosts (Jira uses ["*.atlassian.net"]). Any other host is refused at save time, in the UI before saving and by the API, and gives the plugin no outbound host. The field hint now names the allowed hosts.
  • Regenerated files: the OpenAPI spec and client types.
  • Platform docs: updated for both changes.
  • Test helper: the core plugin test helper can now save settings before enabling, because Jira requires the site URL.

Tests

  • Plugins and shared: 239 pass, 12 of them new Jira tests.
  • Core plugin suites: 171 pass, including the new Jira test through ProPR's real receiver and a new Basic-credential redaction test.
  • API plugin and OpenAPI suites: 30 pass.
  • Plugins page UI: 69 pass.
  • Also passing: plugins:check (7 plugins), the OpenAPI check, typechecks, zero-warning lint on the changed core, API, plugins and UI files, and the docs build.
  • I broke the Markdown escaping, the host check and the Basic header on purpose, and the tests failed each time.

Things to know

  • Atlassian's webhook page has no sample of a labels change. I assumed the same space-separated before/after strings Jira uses for other fields.
  • I couldn't load Atlassian's transition reference page, so the transition endpoints match third-party documentation and my own knowledge.
  • The README says scoped API tokens must be called through api.atlassian.com and so are not supported. That is from memory, not checked against Atlassian's docs.
  • There is no check of how old a webhook is, because Jira retries up to five times, 5 to 15 minutes apart. Replays are handled by the delivery id and by de-duplicating tickets.
  • I captured four previews of the Configure step, on desktop and phone, using the real manifest with mocked Jira data. They show the loaded choices and the refusal of https://jira.example.com. I used a temporary Playwright spec and deleted it afterwards.

Sources: Jira webhooks, Rovo MCP getting started, Rovo MCP API token auth, Jira REST v3 issue transitions, withone.ai transition reference, Atlassian bulk transition announcement

Acceptance criteria

  • AC1: met — packages/plugins/test/jira.test.ts: the trigger label creates exactly one issue; repeated, replayed and re-sent deliveries create none; unmapped projects, other label changes, title edits and other events do nothing and never call Jira. packages/core/test/jiraPluginEvents.test.ts: forged, missing and tampered signatures get 401 before any plugin code runs, and a repeated identifier gets 409.
  • AC2: met — jira.test.ts ("each sync-back event posts its comment and transition when switched on, once, and nothing when off" and "a status no transition reaches is reported in Activity…").
  • AC3: met — jira.test.ts ("a site URL outside *.atlassian.net is refused when the settings are saved…"), jiraPluginEvents.test.ts (the plugin store refuses it with 400), packages/shared/test/plugins.test.ts and propr-ui/src/pages/PluginsPage/PluginSettingsForm.test.tsx.
  • AC4: met — jira.test.ts (the injection test, plus "Jira's document format becomes Markdown…" and the sentinel test).
  • AC5: met — packages/plugins/jira/README.md (setup, permissions, manual smoke-test checklist, documentation links) and docs/docs/plugins/jira.md.

Review digest

Acceptance criteria (5 of 5 met, as stated by the agent)

  • ✅ AC1 (met): Fixture-based handler tests: trigger label added on a mapped ticket creates exactly one GitHub issue; repeats create none; unmapped projects and other changes do nothing; an unauthenticated webhook is rejected before plugin code runs (or, with polling, the cursor advances and no ticket is processed… — `packages/plugins/test/jira.test.ts`: the trigger label creates exactly one issue; repeated, replayed and re-sent deliveries create none; unmapped projects, other label changes, title edits and other events do nothing and never call Jira. `packages/core/test/jiraPluginEvents.test.ts`: forged, missi…
  • ✅ AC2 (met): Each sync-back event posts the expected comment or transition when on and nothing when off; a missing state is reported in Activity. — `jira.test.ts` ("each sync-back event posts its comment and transition when switched on, once, and nothing when off" and "a status no transition reaches is reported in Activity…").
  • ✅ AC3 (met): A site URL outside `*.atlassian.net` is refused at save time. — `jira.test.ts` ("a site URL outside *.atlassian.net is refused when the settings are saved…"), `jiraPluginEvents.test.ts` (the plugin store refuses it with 400), `packages/shared/test/plugins.test.ts` and `propr-ui/src/pages/PluginsPage/PluginSettingsForm.test.tsx`.
  • ✅ AC4 (met): Ticket text cannot affect repository, labels or model (injection test); Jira's document-format description is converted to plain text or Markdown without executing or embedding anything. — `jira.test.ts` (the injection test, plus "Jira's document format becomes Markdown…" and the sentinel test).
  • ✅ AC5 (met): README with setup steps, required permissions and a manual smoke-test checklist; `docs/docs/plugins/jira.md`. — `packages/plugins/jira/README.md` (setup, permissions, manual smoke-test checklist, documentation links) and `docs/docs/plugins/jira.md`.

Risk-tiered paths

  • High risk: none
  • Normal risk (18 files)
    • packages/api/openapi/schemasPlugins.ts (+2/−2)
    • packages/client/src/generated/apiTypes.ts (+6/−6)
    • packages/core/src/plugins/pluginContext.ts (+5/−4)
    • packages/core/src/plugins/pluginHttp.ts (+22/−7)
    • packages/core/src/plugins/pluginStore.ts (+3/−0)
    • packages/plugins/jira/adf.ts (added, +204/−0)
    • packages/plugins/jira/api.ts (added, +159/−0)
    • packages/plugins/jira/handlers.ts (added, +21/−0)
    • packages/plugins/jira/icon.svg (added, +1/−0)
    • packages/plugins/jira/intake.ts (added, +99/−0)
    • packages/plugins/jira/manifest.json (added, +146/−0)
    • packages/plugins/jira/settings.ts (added, +89/−0)
    • packages/plugins/jira/sync.ts (added, +95/−0)
    • packages/plugins/registry.json (+1/−0)
    • packages/plugins/testing/index.ts (+4/−2)
    • packages/shared/src/pluginInstallations.ts (+2/−2)
    • packages/shared/src/plugins.ts (+35/−5)
    • propr-ui/src/pages/PluginsPage/PluginSettingFields.tsx (+1/−1)
  • Low risk (16 files)
    • docs/docs/architecture/plugin-runtime.md (+11/−1)
    • docs/docs/features/plugins.md (+12/−3)
    • docs/docs/plugins/jira.md (added, +179/−0)
    • docs/sidebars.ts (+1/−0)
    • docs/static/openapi/propr-api.yaml (+6/−4)
    • packages/core/test/helpers/pluginHandlerFixture.ts (+4/−1)
    • packages/core/test/jiraPluginEvents.test.ts (added, +141/−0)
    • packages/core/test/pluginHandlerLifecycle.test.ts (+17/−0)
    • packages/plugins/jira/README.md (added, +199/−0)
    • packages/plugins/jira/fixtures/rest.json (added, +442/−0)
    • packages/plugins/jira/fixtures/webhooks.json (added, +69/−0)
    • packages/plugins/jira/skills/jira-ticket/SKILL.md (added, +28/−0)
    • packages/plugins/test/jira.test.ts (added, +402/−0)
    • packages/plugins/test/registry.test.ts (+4/−4)
    • packages/shared/test/plugins.test.ts (+23/−3)
    • propr-ui/src/pages/PluginsPage/PluginSettingsForm.test.tsx (+4/−0)

Validation evidence

  • No repository validation commands ran.

Diff size: 34 files changed, +2,437/−45 lines

Detailed Logs:

  • Conversation: 30 messages
  • Session: bc143c42-709e-4109-b019-2f806dcc9437

Log files stored at:

  • conversation: /usr/src/app/logs/executions/issue-3557-2026-11-17T01-56-59-039Z-conversation.json
  • output: /usr/src/app/logs/executions/issue-3557-2026-11-17T01-56-59-039Z-output.txt
Latest Conversation Messages
ASSISTANT: [content unavailable]

ASSISTANT: I've built the Jira Cloud plugin in `packages/plugins/jira/` and added the docs page. Everything I ran passes, but I did not test against a real Jira site, and I did not run the full repository suite ...


This PR was created automatically by ProPR after processing issue #3557.


💡 Need changes?

Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!


Visual preview

Jira Cloud: Configure step (desktop)

Jira Cloud: Configure step (desktop)

The Jira Cloud plugin's settings at desktop width: site URL, project mapping and status choices loaded through optionsFrom (mocked Jira data)

Full-size original

Jira Cloud: Configure step (phone)

Jira Cloud: Configure step (phone)

The same settings at 390px width

Full-size original

Site URL outside *.atlassian.net refused (desktop)

Site URL outside *.atlassian.net refused (desktop)

Saving https://jira\.example\.com is refused with 'siteUrl must be on *.atlassian.net, not jira.example.com'; the field hint names the allowed hosts

Full-size original

Site URL refused (phone)

Site URL refused (phone)

The save-time refusal at 390px width

Full-size original

…d the docs page. Everything I ran passes, but I did not test against a real Jira site, and I did not run the full repository suite or the existing Plugins Playwright specs.

How it works
- Webhooks, not polling. Atlassian documents a secret for administrator-registered webhooks: Jira signs each request in `X-Hub-Signature` (`sha256=` plus the HMAC of the body). ProPR checks it with the existing `hmac-sha256` scheme before any plugin code runs. `X-Atlassian-Webhook-Identifier` stays the same across Jira's retries, so I use it as the delivery id and a repeat is refused. Because of this I did not build the polling fallback or a `schedule` subscription kind; the README explains the choice.
- Hand-off. A ticket created with the trigger label, or updated so the label is added, is read back by id from the configured site. If its project is mapped to one repository, it creates one GitHub issue. This reuses the shared Linear helper, so de-duplication, quoting and inert `@mentions` behave the same.
- Description conversion. Jira's rich-text description is converted to Markdown in `jira/adf.ts`:
  - Headings, lists, quotes, code and tables come only from the document's structure.
  - Markdown punctuation in ticket text is escaped, so text cannot create an image or a link.
  - Images and attachments become "(attachment not copied)".
  - Only `http(s)` URLs are kept, and only as text.
  - Macros and app content are dropped.
- Sync back. The same six switchable comments, posted in Jira's own comment format. Status moves use the ticket's workflow transition to the configured status name. If no transition reaches that status, a warning appears in Activity and the comment and later events still go ahead. A ticket already in the status is left alone.
- Choices. Projects load from Jira, paged up to 250. Statuses load from the workflows of the mapped projects, so the project mapping has to be saved first.
- Agent context. Only the `jira-ticket` skill. Atlassian's MCP server is left out: it takes OAuth, or a personal API token only as Basic auth where an organisation admin enables it, and ProPR sends MCP credentials only as Bearer. The README and docs page say this.

Platform changes
- Basic auth: a token connection can declare `"authorization": "basic"`. The value is entered as `email:token`, and a value without that shape is refused when set. It is sent as `Authorization: Basic …`, and the whole value, its header form and the token part on its own are all redacted.
- Allowed hosts for URL settings: a URL setting can declare `hosts` (Jira uses `["*.atlassian.net"]`). Any other host is refused at save time, in the UI before saving and by the API, and gives the plugin no outbound host. The field hint now names the allowed hosts.
- Regenerated files: the OpenAPI spec and client types.
- Platform docs: updated for both changes.
- Test helper: the core plugin test helper can now save settings before enabling, because Jira requires the site URL.

Tests
- Plugins and shared: 239 pass, 12 of them new Jira tests.
- Core plugin suites: 171 pass, including the new Jira test through ProPR's real receiver and a new Basic-credential redaction test.
- API plugin and OpenAPI suites: 30 pass.
- Plugins page UI: 69 pass.
- Also passing: `plugins:check` (7 plugins), the OpenAPI check, typechecks, zero-warning lint on the changed core, API, plugins and UI files, and the docs build.
- I broke the Markdown escaping, the host check and the Basic header on purpose, and the tests failed each time.

Things to know
- Atlassian's webhook page has no sample of a labels change. I assumed the same space-separated before/after strings Jira uses for other fields.
- I couldn't load Atlassian's transition reference page, so the transition endpoints match third-party documentation and my own knowledge.
- The README says scoped API tokens must be called through `api.atlassian.com` and so are not supported. That is from memory, not checked against Atlassian's docs.
- There is no check of how old a webhook is, because Jira retries up to five times, 5 to 15 minutes apart. Replays are handled by the delivery id and by de-duplicating tickets.
- I captured four previews of the Configure step, on desktop and phone, using the real manifest with mocked Jira data. They show the loaded choices and the refusal of `https://jira.example.com`. I used a temporary Playwright spec and deleted it afterwards.

Sources: [Jira webhooks](https://developer.atlassian.com/cloud/jira/platform/webhooks/), [Rovo MCP getting started](https://support.atlassian.com/atlassian-rovo-mcp-server/docs/getting-started-with-the-atlassian-remote-mcp-server/), [Rovo MCP API token auth](https://support.atlassian.com/atlassian-rovo-mcp-server/docs/configuring-authentication-via-api-token/), [Jira REST v3 issue transitions](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-transitions/), [withone.ai transition reference](https://withone.ai/knowledge/jira/conn_mod_def%3A%3AGJ4qfCdCUXo%3A%3AEHXg3vKkR9eBZqXkKHkbZg), [Atlassian bulk transition announcement](https://community.atlassian.com/t5/Enterprise-discussions/Introducing-the-Bulk-Transition-API-Simplify-Your-Workflow/td-p/2884971)

Acceptance criteria
- AC1: met — `packages/plugins/test/jira.test.ts`: the trigger label creates exactly one issue; repeated, replayed and re-sent deliveries create none; unmapped projects, other label changes, title edits and other events do nothing and never call Jira. `packages/core/test/jiraPluginEvents.test.ts`: forged, missing and tampered signatures get 401 before any plugin code runs, and a repeated identifier gets 409.
- AC2: met — `jira.test.ts` ("each sync-back event posts its comment and transition when switched on, once, and nothing when off" and "a status no transition reaches is reported in Activity…").
- AC3: met — `jira.test.ts` ("a site URL outside *.atlassian.net is refused when the settings are saved…"), `jiraPluginEvents.test.ts` (the plugin store refuses it with 400), `packages/shared/test/plugins.test.ts` and `propr-ui/src/pages/PluginsPage/PluginSettingsForm.test.tsx`.
- AC4: met — `jira.test.ts` (the injection test, plus "Jira's document format becomes Markdown…" and the sentinel test).
- AC5: met — `packages/plugins/jira/README.md` (setup, permissions, manual smoke-test checklist, documentation links) and `docs/docs/plugins/jira.md`.
@propr-dev

propr-dev Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

/ultrafix goal=8 max=10
Triggered automatically by the requested execution settings.

@propr-dev propr-dev Bot added the ultrafix label Nov 17, 2026
@propr-dev

propr-dev Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

🔄 Ultrafix loop started (goal: 8/10, max cycles: 10)

First action: /review

💡 Tip: Remove the ultrafix label from this PR to stop further ultrafix cycles.

@propr-dev

propr-dev Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

The PR implements Jira intake, sync-back, configuration choices, and documentation with substantial fixture coverage. It needs changes before merge because existing ticket records are not bound to their originating Jira site.

✅ Verified webhook boundary — The manifest selects HMAC verification, and the receiver verifies signatures before reserving deliveries or running handlers.

✅ Restricted outbound hosts — URL validation checks the declared host restriction both when saving settings and when deriving outbound hosts.

✅ Focused platform integration — Basic authentication extends the existing HTTP client and includes redaction coverage for the combined credential and token.

This review used the supplied diff and context only; no commands or tests were run. The authoritative check summary shows no failures and two pending checks.

Merge blockers

Every finding below was introduced by this PR and must be resolved before merging.

F1: 🔴 Bind tracked tickets to their Jira site

  • Category: correctness

  • Required behavior: Deduplication and sync-back must identify the original Jira ticket, including its site; changing configuration must not redirect existing work to unrelated tickets.

  • Evidence: packages/plugins/jira/intake.ts, handleJiraWebhook; packages/plugins/jira/sync.ts, run; packages/plugins/jira/api.ts, jiraRequest

    1. Hand over ticket 10123 from site A. Intake passes only its numeric ID to handOffTicket; the shared persisted record contains that ID, its key, repository, and GitHub issue number, without the site.
    2. Change siteUrl to site B and configure credentials that can access it. This is explicitly accepted by the new jiraPluginEvents.test.ts settings test, and installation state remains intact.
    3. A subsequent task or pull-request event for the original GitHub issue retrieves the existing ticket record. run passes ticket.t to the comment or transition API, while jiraRequest builds the destination from the current site setting.
    4. If B contains an unrelated ticket with ID 10123, it receives A's GitHub-linked comment and potentially its status transition. A's ticket receives neither. Separately, handing over B's ticket with that ID is incorrectly classified as a duplicate of A's ticket.

    static trace: The supplied shared record and hand-off implementations key identity solely by t; both Jira sync operations resolve the destination through current settings. Numeric issue IDs do not encode a site. Host validation permits both sites, and signatures authenticate intake rather than bind persisted records to an origin. Existing tests accept a site change but do not exercise previously tracked work afterward.

  • Minimum fix: Bind tracking state to the originating site. A localized alternative is to reject changes to the normalized site origin while tracked tickets remain, with a clear reset/reinstallation path. Cover both sync-back and deduplication across a site change.

Suggestions

These are optional follow-ups and are not sent to /fix.

S1: 🟢 Capture a real labels-change fixture

The implementation summary acknowledges that space-separated label changes were assumed, and the new fixtures encode that same assumption. A sanitized webhook captured from Jira would independently validate labelList and the intake contract. This is optional verification work: the supplied evidence does not demonstrate that the current parsing is incorrect.

Score

The implementation has useful boundary checks and extensive tests, but site reconfiguration can misroute existing work and suppress unrelated tickets. That correctness defect requires correction before merge.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 19s
  • Tokens: 102,890 (101,642 in / 1,248 out)
  • Cost: $0.97

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix F1 S1

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit cc4db82

Addressed 1 AI review comment (IDs: 6935940970)

Addressed finding F1

Summary of Changes

I've fixed F1: Jira ticket records now remember which site they came from. Changing the Jira site URL can no longer send one site's comments or status changes to an unrelated ticket on another site, and the new site's tickets are no longer counted as duplicates of the old site's. All the checks I ran pass.

What changed

  • Records include the site. A ticket is now stored as <site host>/<issue id>, for example acme.atlassian.net/10123, through new helpers in packages/plugins/jira/api.ts. Because this key is also what de-duplication uses, ticket 10123 on two different sites counts as two tickets. The shared tracker code used by Linear is unchanged.
  • Sync-back checks the site first (jira/sync.ts). If a ticket came from a different site than the one configured now, the event is skipped with reason other_site and a warning in Activity. Jira isn't called and nothing is marked done, so the ticket's updates resume if the site URL is set back.
  • Webhooks from another site are ignored (jira/intake.ts). I found the same problem on the incoming side: a webhook still registered on the old site, with the same secret, would make the plugin read the new site's ticket with the same number and hand it over. Intake now compares the ticket's own URL in the webhook (issue.self) with the configured site and ignores a mismatch (other_site) before calling Jira.
  • Docs. jira/README.md and docs/docs/plugins/jira.md now explain this, and the docs have a new troubleshooting row for the warning.

Tests

  • New regression test in packages/plugins/test/jira.test.ts, which follows one ticket through a site change:
    1. Hand over ENG-123 from site A.
    2. Switch to site B. The started, opened and merged events are all skipped as other_site with no requests to any site, and a webhook from A is ignored.
    3. B's own ticket 10123 creates a new issue and is commented on at B only.
    4. Switch back to A. A's ticket syncs again, B's is skipped, and A's ticket is still a duplicate.
  • Breaking each fix fails the test. I undid each of the three changes in turn (record key, webhook site check, sync site check) and the new test failed each time.
  • Everything else I ran passes:
    • All 103 plugin tests.
    • The core Jira and Linear webhook tests (7).
    • Plugins typecheck, zero-warning lint on the changed files, plugins:check (7 plugins) and the docs build.

Still to know: I didn't run the full repository suite. Nothing visible in the interface changed, so I made no previews.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (3 files)
    • packages/plugins/jira/api.ts (+23/−0)
    • packages/plugins/jira/intake.ts (+18/−5)
    • packages/plugins/jira/sync.ts (+16/−6)
  • Low risk (3 files)
    • docs/docs/plugins/jira.md (+7/−0)
    • packages/plugins/jira/README.md (+6/−0)
    • packages/plugins/test/jira.test.ts (+40/−6)

Validation evidence

  • No repository validation commands ran.

Diff size: 6 files changed, +110/−17 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-ultrafix
  • Time: 7m 53s
  • Tokens: 2,212,118 (2,198,862 in / 13,256 out)
  • Cost: $1.17
  • Subscription usage: Weekly +1%, Fable +1%

View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR

…they came from. Changing the Jira site URL can no longer send one site's comments or status changes to an unrelated ticket on another site, and the new site's tickets are no longer counted as duplicates of the old site's. All the checks I ran pass.

I've fixed F1: Jira ticket records now remember which site they came from. Changing the Jira site URL can no longer send one site's comments or status changes to an unrelated ticket on another site, and the new site's tickets are no longer counted as duplicates of the old site's. All the checks I ran pass.

**What changed**
- **Records include the site.** A ticket is now stored as `<site host>/<issue id>`, for example `acme.atlassian.net/10123`, through new helpers in `packages/plugins/jira/api.ts`. Because this key is also what de-duplication uses, ticket `10123` on two different sites counts as two tickets. The shared tracker code used by Linear is unchanged.
- **Sync-back checks the site first** (`jira/sync.ts`). If a ticket came from a different site than the one configured now, the event is skipped with reason `other_site` and a warning in Activity. Jira isn't called and nothing is marked done, so the ticket's updates resume if the site URL is set back.
- **Webhooks from another site are ignored** (`jira/intake.ts`). I found the same problem on the incoming side: a webhook still registered on the old site, with the same secret, would make the plugin read the new site's ticket with the same number and hand it over. Intake now compares the ticket's own URL in the webhook (`issue.self`) with the configured site and ignores a mismatch (`other_site`) before calling Jira.
- **Docs.** `jira/README.md` and `docs/docs/plugins/jira.md` now explain this, and the docs have a new troubleshooting row for the warning.

**Tests**
- **New regression test** in `packages/plugins/test/jira.test.ts`, which follows one ticket through a site change:
  1. Hand over ENG-123 from site A.
  2. Switch to site B. The started, opened and merged events are all skipped as `other_site` with no requests to any site, and a webhook from A is ignored.
  3. B's own ticket `10123` creates a new issue and is commented on at B only.
  4. Switch back to A. A's ticket syncs again, B's is skipped, and A's ticket is still a duplicate.
- **Breaking each fix fails the test.** I undid each of the three changes in turn (record key, webhook site check, sync site check) and the new test failed each time.
- **Everything else I ran passes:**
  - All 103 plugin tests.
  - The core Jira and Linear webhook tests (7).
  - Plugins typecheck, zero-warning lint on the changed files, `plugins:check` (7 plugins) and the docs build.

**Still to know:** I didn't run the full repository suite. Nothing visible in the interface changed, so I made no previews.

PR: #3626
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5
@propr-dev

propr-dev Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

The PR adds Jira Cloud intake and sync-back using the existing tracker helpers, with focused platform support for Basic authentication and restricted URL settings. The supplied code supports merging, conditional on the remaining checks completing successfully.

✅ Authenticated intake — The manifest selects HMAC verification before dispatch, and intake reads tickets back from the configured site before creating issues.

✅ Site-bound tracking — Ticket identities include the Jira host; sync-back refuses to update records belonging to another configured site.

✅ Focused regression coverage — Added tests cover signature rejection, duplicate intake, credential redaction, host restrictions, and independently retried sync actions.

This was a static review of the supplied diff and surrounding context; no commands or tests were run. Current checks show 31 passed, three pending, and no failures.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S2: 🟢 Validate real label-change payloads

packages/plugins/jira/intake.ts assumes space-separated fromString and toString labels, and the fixtures encode that same assumption. Capture a sanitized Jira delivery during the documented smoke test and retain it as a regression fixture. This would strengthen interoperability evidence; the supplied material does not establish that the current interpretation is incorrect.

S3: 🟢 Align troubleshooting with recorded diagnostics

docs/docs/plugins/jira.md lists detailed intake errors and unmapped-project messages as Activity diagnostics. The supplied runtime documentation says webhook deliveries suppress handler message text and retain generic errors instead. Clarify which messages users can actually see and where to diagnose intake failures. This is a documentation follow-up rather than a demonstrated failure of intake or sync-back.

Score

The implementation is cohesive and has substantial targeted coverage, with no verified merge blocker in the supplied code. Real Jira payload validation would improve confidence; remaining CI checks are pending rather than failing.

Score: 8/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 59s
  • Tokens: 104,918 (103,899 in / 1,019 out)
  • Cost: $0.96

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix S2 S3

🤖 Review by ProPR

@propr-dev propr-dev Bot removed the ultrafix label Nov 17, 2026
@propr-dev

propr-dev Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

ℹ️ GitHub auto-merge is turned off for this repository, so ProPR merges this PR itself once it is ready (checks passed or no CI configured, and the review goal met).

To let GitHub merge it the moment required checks pass, enable Settings → General → Pull Requests → Allow auto-merge.

@propr-dev
propr-dev Bot merged commit 7c2398d into 3542-epic-plugin-system-xu8 Nov 17, 2026
50 checks passed
@propr-dev
propr-dev Bot deleted the 3557/claude-opus-5-5-official-plugin-jira-clou-20261117-0122-3s3 branch November 17, 2026 02:52
@propr-dev propr-dev Bot changed the title 🔨 [3557 by Claude Opus 5.5] Official plugin: Jira Cloud (start work from a ticket, keep the ticket in sync) [3557 by Claude Opus 5.5] Official plugin: Jira Cloud (start work from a ticket, keep the ticket in sync) Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants