Skip to content

[TRUNK-17841] Add Jira webhook integration docs#526

Merged
samgutentag merged 1 commit intomainfrom
sam-gutentag/jira-webhook-integration
Mar 27, 2026
Merged

[TRUNK-17841] Add Jira webhook integration docs#526
samgutentag merged 1 commit intomainfrom
sam-gutentag/jira-webhook-integration

Conversation

@samgutentag
Copy link
Copy Markdown
Member

Summary

  • New docs page for configuring automated Jira issue creation via Svix webhooks (flaky-tests/webhooks/jira-integration.md)
  • Mirrors the existing Linear webhook integration page structure: API token setup, endpoint config, custom headers, transformation code, testing, and monitoring
  • Updated webhooks overview to mention both Linear and Jira connectors
  • Added Jira integration to summary.md table of contents

Linear tickets

  • TRUNK-17841 - Create Jira Connector for Svix webhooks

Engineering authors

  • @tyler-jang (Tyler Beebe - created TRUNK-17841, configured the Svix connector)

Context links

Files changed

  • flaky-tests/webhooks/jira-integration.md (new) - Full setup guide for Jira webhook integration
  • flaky-tests/webhooks/README.md (updated) - Overview text and card grid
  • summary.md (updated) - TOC entry

Open questions

  1. Is there a dedicated "Automate Jira Issues Creation" button in the Svix UI, or do users create a generic endpoint? (Assumed button exists based on Linear pattern)
  2. Should we mention the scoped API token URL difference (api.atlassian.com/ex/jira/{cloudId}) for users with scoped tokens? Tyler flagged this in #team-flaky-tests.
  3. Transformation code uses Jira wiki markup for descriptions - should we note that Jira Cloud also supports ADF (Atlassian Document Format)?

Test plan

  • Check GitBook preview renders correctly on the change request branch
  • Verify all internal links resolve (ticketing integration cross-reference, webhooks overview)
  • Confirm transformation code matches what's in the Svix dashboard
  • Verify the setup steps match the actual connector UI flow

🤖 Generated with Claude Code

New page for configuring the Svix Jira connector to automatically create
Jira issues when tests become flaky. Mirrors the existing Linear webhook
integration page. Updates webhooks overview and summary TOC.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@trunk-staging-io
Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

Copy link
Copy Markdown

@acatxnamedvirtue acatxnamedvirtue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!
nice work claude :P

@samgutentag samgutentag marked this pull request as ready for review March 27, 2026 18:52
@samgutentag samgutentag merged commit 6b549ed into main Mar 27, 2026
5 of 6 checks passed
@samgutentag samgutentag deleted the sam-gutentag/jira-webhook-integration branch March 27, 2026 18:52
@claude
Copy link
Copy Markdown
Contributor

claude bot commented Mar 27, 2026

Claude finished @samgutentag's task in 2m 18s —— View job


PR Review

  • Gather context and read changed files
  • Review documentation for typos, grammar, and formatting
  • Check documentation best practices
  • Post review feedback

Overall this is a well-structured doc that cleanly mirrors the Linear webhook integration page. No blocking issues — a few minor nits below.

flaky-tests/webhooks/jira-integration.md

  • Line 37 — confirm button exists: The PR flags it as an open question whether the Automate Jira Issues Creation button exists in the Svix UI. If it doesn't, step 3 in section 2 would guide users to the wrong place.
  • Line 80 — phrasing nit: "Here is the provided transformation for context" is awkward. Suggested alternative in the inline comment.
  • Line 173 — repetitive phrasing: "You can create test issues… You can do this by:" — suggested simplification in the inline comment.

Open questions from the PR body (not blocking, but worth tracking):

  • Scoped API token users need a different base URL (api.atlassian.com/ex/jira/{cloudId}) — currently undocumented.
  • Jira Cloud supports ADF (Atlassian Document Format) in addition to Jira wiki markup — the hint at line 168 could mention this as an option.

flaky-tests/webhooks/README.md and summary.md — both look good.

@acatxnamedvirtue
Copy link
Copy Markdown

RE: Open questions:

  1. Is there a dedicated "Automate Jira Issues Creation" button in the Svix UI, or do users create a generic endpoint? (Assumed button exists based on Linear pattern)
    Yes it is a dedicated button

  2. Should we mention the scoped API token URL difference (api.atlassian.com/ex/jira/{cloudId}) for users with scoped tokens? Tyler flagged this in #team-flaky-tests.
    I wouldn't mention it until we fully add support for scoped tokens later

  3. descriptions as ADF format
    I doubt anyone would willingly write ADF themselves in the transformer. Blegh


<table><thead><tr><th width="346">Constant</th><th>Description</th></tr></thead><tbody><tr><td><code>JIRA_PROJECT_KEY</code></td><td>(<strong>Required)</strong> Your Jira project key (e.g., <code>ENG</code>, <code>PROJ</code>).</td></tr><tr><td><code>JIRA_ISSUE_TYPE</code></td><td><strong>(Optional)</strong> The issue type to create. Defaults to <code>Bug</code>.</td></tr><tr><td><code>JIRA_LABELS</code></td><td>(<strong>Optional)</strong> Array of labels to add to the issue. Defaults to <code>["flaky-test"]</code>.</td></tr><tr><td><code>JIRA_CUSTOM_FIELDS</code></td><td>(<strong>Optional)</strong> Object of custom field key-value pairs for projects that require additional fields.</td></tr><tr><td><code>PRS_IMPACTED_THRESHOLD</code></td><td>Issues will be created only for flaky tests that have impacted more PRs than the <code>PRS_IMPACTED_THRESHOLD</code>.<br><br>You can adjust this value if you see many issues about low-impact flaky tests.</td></tr></tbody></table>

Here is the provided transformation for context. You can customize your Jira issues integration by following the [Jira REST API docs](https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issues/#api-rest-api-2-issue-post) and [Svix transformations](https://docs.svix.com/transformations#using-transformations) documentation.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor phrasing nit — "Here is the provided transformation for context" is slightly awkward.

Suggested change
Here is the provided transformation for context. You can customize your Jira issues integration by following the [Jira REST API docs](https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issues/#api-rest-api-2-issue-post) and [Svix transformations](https://docs.svix.com/transformations#using-transformations) documentation.
Here is the default transformation code for reference. You can customize your Jira issues integration by following the [Jira REST API docs](https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issues/#api-rest-api-2-issue-post) and [Svix transformations](https://docs.svix.com/transformations#using-transformations) documentation.


### 6. Test your webhook

You can create test issues by delivering a mock webhook. You can do this by:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: "You can … You can do this by:" is slightly repetitive.

Suggested change
You can create test issues by delivering a mock webhook. You can do this by:
Send a test Jira issue by delivering a mock webhook:


1. Login to [Trunk Flaky Tests](https://app.trunk.io/login?intent=flaky%20tests)
2. From your profile on the top right, navigate to **Settings**
3. Under **Organization > Webhooks**, click **Automate Jira Issues Creation**.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR notes this as an open question — if the Automate Jira Issues Creation button doesn't exist in the Svix UI (unlike the Linear connector), users would need to create a generic endpoint instead. Worth confirming with Tyler that this specific button is live before this page gets traffic.

Copy link
Copy Markdown

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-approved: Claude code review passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants