[TRUNK-17841] Add Jira webhook integration docs#526
Conversation
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>
|
Merging to
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 |
acatxnamedvirtue
left a comment
There was a problem hiding this comment.
Looks good!
nice work claude :P
|
Claude finished @samgutentag's task in 2m 18s —— View job PR Review
Overall this is a well-structured doc that cleanly mirrors the Linear webhook integration page. No blocking issues — a few minor nits below.
Open questions from the PR body (not blocking, but worth tracking):
|
|
RE: Open questions:
|
|
|
||
| <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. |
There was a problem hiding this comment.
Minor phrasing nit — "Here is the provided transformation for context" is slightly awkward.
| 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: |
There was a problem hiding this comment.
Nit: "You can … You can do this by:" is slightly repetitive.
| 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**. |
There was a problem hiding this comment.
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.
Summary
flaky-tests/webhooks/jira-integration.md)summary.mdtable of contentsLinear tickets
Engineering authors
Context links
Files changed
flaky-tests/webhooks/jira-integration.md(new) - Full setup guide for Jira webhook integrationflaky-tests/webhooks/README.md(updated) - Overview text and card gridsummary.md(updated) - TOC entryOpen questions
api.atlassian.com/ex/jira/{cloudId}) for users with scoped tokens? Tyler flagged this in #team-flaky-tests.Test plan
🤖 Generated with Claude Code