# Issue trackers and Slack

Source: https://testis.dev/docs/integrations

> Send a problem Testis found to GitHub Issues, Jira or Linear in one command, and tell a Slack channel how each test run went.

Testis keeps everything on your machine until you send it somewhere. Two kinds of connection are built in: **issue trackers** (one problem becomes one issue) and **Slack** (a short message after each run). Tokens never go in `.testis/config.yaml`: the config names the environment variable, and the value lives in your shell, your CI secrets, or `.testis/secrets.env` (git-ignored).

## File a problem as an issue

After `testis test`, every failed case has an id (`tc012-...`) in the summary and the report.

```bash
testis issue 1 --print     # see the issue text for bug 1 of the latest report; nothing is sent
testis issue 1             # file it in the tracker this project has set up
testis issue 1 --to jira   # choose one when several are set up
```

Bugs are numbered as in the report (1 is the most severe). The issue says what should happen (your PRD's words), what happened instead, the text that was on the screen, where, the account, what the app reported and the steps. Secrets in the steps stay as `{{NAMES}}`. In the chat you can say "file bug 2"; it asks before sending.

### GitHub Issues

```yaml
integrations:
  github:
    repo: acme/shop          # optional: by default, the repository of your git remote "origin"
    labels: [bug, testis]    # optional
```

Token: `GITHUB_TOKEN`, a fine-grained personal access token with **Issues: read and write** on that repository (github.com/settings/personal-access-tokens). In GitHub Actions the built-in `secrets.GITHUB_TOKEN` works when the job has `permissions: issues: write`.

### Jira

```yaml
integrations:
  jira:
    url: https://acme.atlassian.net
    project: WEB             # the project key
    issueType: Bug           # optional
```

Credentials: `JIRA_EMAIL` (your Atlassian account e-mail) and `JIRA_API_TOKEN` (id.atlassian.com/manage-profile/security/api-tokens).

### Linear

```yaml
integrations:
  linear:
    team: ENG                # the team key (or its name)
```

Token: `LINEAR_API_KEY` (Linear: Settings > Security & access > Personal API keys).

## Tell Slack how a run went

```yaml
integrations:
  slack:
    on: failures             # or always
```

Create an incoming webhook (api.slack.com/apps > your app > Incoming Webhooks > Add New Webhook) and put its address in `SLACK_WEBHOOK_URL`. After `testis test`, the channel gets one message: what the tester found, the bugs (up to twelve) and, when you are signed in, a link to the run in the dashboard. Only `https://hooks.slack.com/` addresses are used, and a Slack problem never fails a run.

## Results in the dashboard

When you are signed in (`testis login`), `testis test` uploads its results to your dashboard automatically. Turn it off for one run with `--no-sync`, or for the project with `cloud: { sync: false }`. See [Account, dashboard and plans](/docs/cloud-account).
