Skip to content

File Jira bugs automatically ​

When a replay fails, BugTrail can create a Jira Cloud issue containing the steps to reproduce, the error, the environment, a screenshot and the recording.

Before you begin ​

You need a Jira Cloud site, a project, and an API token.

  1. Create a token at id.atlassian.com under Security > API tokens.
  2. Set these environment variables:
VariableExample
JIRA_BASE_URLhttps://yourteam.atlassian.net
JIRA_EMAILyou@example.com
JIRA_API_TOKENthe token you created
JIRA_PROJECT_KEYSHOP
JIRA_ISSUE_TYPEoptional, defaults to Bug

File a bug ​

bash
node bin/replay.js recording.json --jira

If the replay fails, an issue is created. If it passes, nothing is created.

What is attached ​

The recording is attached with cookie and storage values removed. Never put tokens in an issue by hand.

Tested against a simulated Jira

The integration is verified against a local fake Jira server, not yet a real site. If it fails on your Jira, please report a problem.