5-Minute Setup: Playwright Sharding, PR Bot & Zero-Egress Jira CI
Step 1 — Install ForgeQA & Generate a Per-Project Token
- Install ForgeQA — Playwright & CI Test Radar from the Atlassian Marketplace onto your Jira Cloud site.
- Open your Jira project and click ForgeQA CI & QA in the project sidebar.
- Copy your Static Web Trigger URL and click Generate Project Token.
- Save both in your CI secret store as
FORGEQA_WEBTRIGGER_URLandFORGEQA_WEBHOOK_TOKEN.
Step 2 — Configure Sharded Playwright Merge & Optional PR Comment Bot
Our zero-dependency Node 20 GitHub Action natively supports glob shard merging
(e.g., playwright-report/shard-*.json), automatic base64 attachment & stdout slimming
(keeping large suites cleanly under Forge's 950 KiB Web Trigger limit), and an optional
auto-updating Pull Request summary comment.
permissions:
contents: read
pull-requests: write # Required only if enabling optional PR comments
jobs:
e2e-upload:
runs-on: ubuntu-latest
steps:
- name: Download Playwright shard JSON artifacts
uses: actions/download-artifact@v4
with:
pattern: playwright-shard-*
path: playwright-report
merge-multiple: true
- name: Upload Sharded Playwright Results to Jira (ForgeQA)
if: always()
uses: forgeqa/playwright-to-jira-action@v1
with:
webtrigger-url: ${{ secrets.FORGEQA_WEBTRIGGER_URL }}
webhook-token: ${{ secrets.FORGEQA_WEBHOOK_TOKEN }}
project-key: 'PAY'
report-path: 'playwright-report/shard-*.json'
format: 'playwright-json'
github-token: ${{ secrets.GITHUB_TOKEN }}
comment-on-pr: 'true'
Alternative: Raw curl (GitLab CI / Jenkins / Bitbucket Pipelines)
curl -sS -X POST "${FORGEQA_WEBTRIGGER_URL}?projectKey=PAY&format=playwright-json&branch=${CI_COMMIT_REF_NAME}&commitSha=${CI_COMMIT_SHA}" \
-H "Authorization: Bearer ${FORGEQA_WEBHOOK_TOKEN}" \
-H "Content-Type: application/json" \
--data-binary @playwright-report/results.json
For JUnit XML suites (Jest, Pytest, Maven, Cypress), pass format: 'junit-xml' and point report-path to your XML file or glob pattern.
Step 3 — Auto-Link Tests to Jira Stories via @PROJ-123
test('completes 3DS checkout @PAY-101', async ({ page }) => {
// Automatically appears in PAY-101 Issue Panel with Pass/Fail, Flaky, and Stack Trace
});
test('handles webhook retry', {
annotation: { type: 'jira', description: 'PAY-101' }
}, async ({ page }) => {
// Annotations are also auto-linked on Run #1
});
Step 4 — Triage with Error Fingerprint Grouping & Regression Diff
- Run Detail Drawer: Click any row in Recent CI Runs to inspect full stack traces and
NEW FAILUREvsKNOWN FAILUREvsFIXEDregression tags compared against your previous CI run. - Error Fingerprint Grouping: Similar stack traces with different timestamps, durations, UUIDs, or line numbers are clustered into one fingerprint group. Click Create 1 Jira Bug for Group to file a single Jira defect (dynamically matching your project's available issue types via
createmeta), backfill all grouped failures, and automatically create native bidirectional JiraissueLinklinks to every linked Story.
Step 5 — Native Atlassian Rovo Agent (@ForgeQA Test Architect)
@ForgeQA Test Architect Show flaky Playwright tests in project PAY@ForgeQA Test Architect Summarize the latest CI test runs and failures in PAY@ForgeQA Test Architect Draft and save test cases for PAY-101 in project PAY
GitHub Action Inputs Reference
| Input | Required | Description |
|---|---|---|
webtrigger-url |
Yes | Static Forge Web Trigger URL from ForgeQA Tab 1. |
webhook-token |
Yes | Per-project encrypted ForgeQA token stored in CI Secrets. |
project-key |
Yes | Target Jira project key (e.g. PAY, SAM1). |
report-path |
Yes | Single path, comma/newline list, or glob (playwright-report/shard-*.json). |
format |
No | playwright-json (default) or junit-xml. |
github-token |
No | Optional ${{ secrets.GITHUB_TOKEN }} to create/update a single PR battle-report comment. |
comment-on-pr |
No | true (default when github-token is provided) or false. |
auth-mode |
No | hmac (default, X-ForgeQA-Signature) or bearer. |