# Bug report template: copy-paste for GitHub, Jira, and Linear

> A copy-paste bug report template in Markdown, a GitHub issue form for your repository, field mappings for Jira and Linear, and a filled-in example to follow.

Published 2026-11-14 by the Laneshot team. Source: https://laneshot.com/blog/bug-report-template

A bug report template is a short, fixed set of fields that every bug report fills in: a summary, steps to reproduce, the expected and actual results, the environment, and evidence. It makes reports consistent, so a developer can read any of them the same way and start on the fix without asking follow-up questions.

Below you'll find a plain Markdown template you can paste anywhere, a GitHub issue form you can add to a repository, notes for Jira and Linear, advice on which fields to keep optional, and a filled-in example. They're meant for your own issue tracker: copy them, then cut whatever your team doesn't use.

For the reasoning behind each field, read [how to write a bug report developers can act on](/blog/how-to-write-a-bug-report).

## The fields a bug report template needs

| Field | Required? | Why it's there |
| --- | --- | --- |
| Summary | Yes | Becomes the title: what broke, and where |
| Steps to reproduce | Yes | Lets someone else see the bug |
| Expected result | Yes | Names the rule the bug breaks |
| Actual result | Yes | What happened, with the exact error text |
| Page URL | Yes | Where to start looking |
| Browser | Yes | Many bugs only happen in one browser |
| Browser version and operating system | Optional | Narrows it down further |
| Account and role | Optional | Often explains "works for me" |
| How often | Optional | Every time, sometimes, or once |
| Screenshot or recording | Optional, but ask for it | Shows what words miss |
| Console errors and failed requests | Optional | Often point to the cause of load and save failures |
| Impact | Optional | Who is affected, and whether there's a workaround |
| Severity and priority | Set in triage | Decided by the team, not the reporter |

## The plain Markdown template

This version works in any tool that accepts Markdown: GitHub, GitLab, Linear, many help desks, or a plain text file. GitHub and GitLab hide the lines in `<!-- -->` when the issue is displayed, so reporters see the guidance while they write. In other tools, delete those lines before saving.

```markdown
## Summary
<!-- One line: what broke, where, and when or for whom. -->

## Steps to reproduce
1.
2.
3.

## Expected result
<!-- What should have happened? -->

## Actual result
<!-- What happened instead? Copy any error message word for word. -->

## Environment
- Page URL:
- Browser and version:
- Operating system:
- Account and role:
- Date and time (with time zone):
- How often: every time / sometimes / once

## Evidence
<!-- Screenshot or recording, console errors, failed network requests.
     Remove passwords, tokens, and personal data first. -->

## Impact
<!-- Who is affected? Is there a workaround? -->
```

To make it a GitHub issue template, save it as `.github/ISSUE_TEMPLATE/bug_report.md` on the repository's default branch, with this header on top:

```markdown
---
name: Bug report
about: Something in the product doesn't work as expected
title: ""
labels: bug
---
```

## A GitHub issue form

Issue forms turn the template into real fields: text areas, inputs, and dropdowns, some of them required. Reporters can't skip a section by accident, and every issue comes out in the same layout. Save this as `.github/ISSUE_TEMPLATE/bug_report.yml`:

```yaml
name: Bug report
description: Something in the product doesn't work as expected.
title: "[Bug]: "
labels: ["bug", "triage"]
body:
  - type: markdown
    attributes:
      value: |
        Thanks for reporting a bug. A screenshot or a short recording
        helps more than a long description.
  - type: textarea
    id: summary
    attributes:
      label: What went wrong?
      description: One or two sentences. What broke, and where?
      placeholder: The Export CSV button downloads an empty file when a date filter is set.
    validations:
      required: true
  - type: textarea
    id: steps
    attributes:
      label: Steps to reproduce
      description: Start from a page anyone on the team can open, and number each step.
      placeholder: |
        1. Go to Reports > Orders
        2. Set the date filter to Last 30 days
        3. Click Export CSV
    validations:
      required: true
  - type: textarea
    id: expected
    attributes:
      label: Expected result
    validations:
      required: true
  - type: textarea
    id: actual
    attributes:
      label: Actual result
      description: Copy any error message word for word.
    validations:
      required: true
  - type: input
    id: url
    attributes:
      label: Page URL
      placeholder: https://app.example.com/reports/orders
    validations:
      required: true
  - type: dropdown
    id: browsers
    attributes:
      label: Browsers where it happens
      multiple: true
      options:
        - Chrome
        - Edge
        - Firefox
        - Safari
        - Other
    validations:
      required: true
  - type: input
    id: versions
    attributes:
      label: Browser version and operating system
      placeholder: Chrome 131 on Windows 11
  - type: input
    id: account
    attributes:
      label: Account and role
      description: The account or workspace you used, and its role. Never paste a password.
  - type: dropdown
    id: frequency
    attributes:
      label: How often does it happen?
      options:
        - Every time
        - Sometimes
        - Once so far
  - type: textarea
    id: evidence
    attributes:
      label: Screenshots or recording
      description: Drop files here or paste a link. Hide personal data first.
  - type: textarea
    id: logs
    attributes:
      label: Console errors
      description: Paste the red lines from the browser console. They're formatted as code.
      render: shell
```

Things to know about issue forms:

- **Required fields only block submission in public repositories.** GitHub documents `validations: required` as public-only, so in a private repository, use each field's description to ask for what matters.
- **Labels must already exist.** GitHub won't add a label the repository doesn't have, so create `bug` and `triage` first.
- **`render: shell` formats pasted logs as code**, so reporters don't need to add backticks.

To turn off blank issues and point other questions elsewhere, add `.github/ISSUE_TEMPLATE/config.yml`:

```yaml
blank_issues_enabled: false
contact_links:
  - name: Question about your account
    url: https://example.com/support
    about: Our support team answers account and billing questions.
```

## Using the template in Jira and Linear

Both tools have their own fields for part of the template. Map those first, and put the rest in the description.

### Jira

| Template field | Jira field |
| --- | --- |
| Summary | Summary |
| Steps, expected result, actual result | Description |
| Page URL, browser, operating system | Environment, if your bug screen shows it, or Description |
| Severity | A custom select field, if your project has one |
| Priority | Priority, set during triage |
| Screenshot or recording | Attachment, or a link in the description |
| Version where it happens | Affects versions, if your project uses versions |
| Area of the product | Components or Labels |

Many Jira projects don't have a severity field out of the box, so teams that track severity usually add a custom select field. Until you have one, write it in the description or use a label.

Jira's editors differ between sites and versions, so this plain-text description, with no Markdown syntax, is the safest to paste:

```text
What happened:

What I expected:

Steps to reproduce:
1.
2.
3.

How often: every time / sometimes / once
Account and role:
Date and time (with time zone):

Evidence: attach a screenshot or recording, and paste console errors.
Impact: who is affected, and is there a workaround?
```

### Linear

Linear issues have a title, a Markdown description, and a few built-in fields. The Markdown template above works in the description as it is.

| Template field | Linear field |
| --- | --- |
| Summary | Title |
| Steps, results, environment, evidence | Description |
| Priority | Priority: Urgent, High, Medium, Low, or No priority |
| Severity | Labels, such as one label per severity level |
| Screenshot or recording | Attached to the issue, or linked in the description |

Keep the Environment block in the description, where developers will look for it.

## Which fields to keep optional

Every required field is one more reason to give up and send a chat message instead, especially for people outside engineering. A split that works:

- **Required:** summary, steps to reproduce, expected result, actual result, page URL, and browser. That's the minimum for anyone to start.
- **Optional, with a nudge:** a screenshot or recording. Say in the field's description that it's the most useful thing to add.
- **Optional:** browser version and operating system, account and role, how often, console errors, and impact. Reporters who know them will add them.
- **Not for reporters:** severity, priority, assignee, and component. The team sets these during [bug triage](/blog/bug-triage-process). Reporters naturally see their own bug as urgent, because it is urgent for them.

For a sense of urgency, ask a factual question instead, such as "Can you finish your task another way?". The answer helps the team set [severity and priority](/blog/bug-severity-vs-priority) without guessing.

## A filled-in example

Here's the Markdown template filled in:

```markdown
## Summary
CSV export of the Orders report downloads an empty file when a date filter is set

## Steps to reproduce
1. Sign in as an admin of any workspace with orders.
2. Open Reports > Orders.
3. Set the date filter to "Last 30 days".
4. Click Export CSV.
5. Open the downloaded file.

## Expected result
The file lists the orders shown on screen (42 rows in my case).

## Actual result
The file has the header row only. No error is shown.
Without the date filter, the export works.

## Environment
- Page URL: https://app.example.com/reports/orders?range=30d
- Browser and version: Chrome 131
- Operating system: Windows 11
- Account and role: finance@northwind.example, Admin
- Date and time: Nov 13, 2026, 09:42 CET
- How often: every time

## Evidence
- Recording: (link)
- Console: no errors
- Network: GET /api/reports/orders/export?range=30d returned 200 with an empty body

## Impact
Finance exports this report every Monday.
Workaround: export without the filter, then filter in a spreadsheet.
```

It says what works, which points straight at the date filter, and it names the request that returned the empty file.

## Fill in the environment automatically

The fields reporters struggle with most are the technical ones: versions, console errors, failed requests. If your team uses Laneshot, the [browser extension](https://laneshot.com/docs/capture/browser-extension) collects those with each capture. When the card is filed in GitHub, Linear, Jira, or another connected tracker, the issue description is prefilled with the card's description, a summary of each capture, and a link back to the card:

```markdown
### Captures

#### [CSV export downloads an empty file](https://app.laneshot.com/traces/0b1f…)

- **Page:** https://app.example.com/reports/orders
- **Browser:** Chrome 131 on Windows 11
- **Viewport:** 1440×900 at 1x
- **Console errors:** 0
- **Failed requests:** 0 of 18
```

The reporter writes the summary and the steps, and the environment comes with the capture.

## Frequently asked questions

### What is a bug report template?

A bug report template is a fixed set of fields for every bug report: summary, steps to reproduce, expected result, actual result, environment, and evidence. It keeps reports consistent and saves developers from asking the same follow-up questions.

### Where do GitHub issue templates go?

In the `.github/ISSUE_TEMPLATE/` folder of the repository, on its default branch. Use a `.md` file for a Markdown template, or a `.yml` file for an issue form with real fields.

### Should every field in a bug report template be required?

No. Require only what someone needs to start: summary, steps, expected and actual results, URL, and browser. Every extra required field makes people less likely to file the report at all.

### Can I use the same bug report template in Jira and Linear?

Yes. Map the summary to the title, put the steps, results, and environment in the description, and use each tool's own fields for priority and labels. Linear takes the Markdown version as it is, and the plain-text version pastes cleanly into Jira.
