Bug report template: what a developer needs to reproduce a bug
A good bug report lets a developer reproduce the problem without asking the reporter anything. Copy the template below, or add the GitHub issue form to your repository.
The template
Paste this into a GitHub issue, a Jira ticket or a chat message.
## Summary <What is broken, and where, in one line> ## Environment - Build or branch: - Device and OS: - Browser or app version: - Account or test data: ## Steps to reproduce 1. 2. 3. ## Expected result ## Actual result ## Evidence <Screenshots, screen recordings, error messages>
What each field is for
Summary
Name the broken behavior and where it happens. "Checkout does nothing after applying a coupon" is something a developer can search for. "Checkout bug" isn't.
Environment
Many bugs depend on the build, the device or the data. Include the branch or build number, the device and OS version, and the browser or app version. If the bug needs a specific account or test data, say which.
Steps to reproduce
Number each action, start from a state anyone can reach, and include the values you typed. Follow the steps once more before filing to check they reproduce the bug.
Expected and actual result
Write both. The expected result tells the developer what correct looks like, and the difference between the two is the bug.
Evidence
A screenshot shows the broken state. A screen recording shows the steps that led there. Copy error messages as text so they can be searched. Crop out personal data that has nothing to do with the bug.
Severity and priority
If your team uses them, severity says how bad the bug is and priority says how soon to fix it. Reporters can judge severity. Leave priority to whoever plans the work.
A filled-in example
## Summary Checkout does nothing after applying a coupon ## Environment - Build or branch: staging, release/2.14 at 9f3c2e1 - Device and OS: iPhone 15, iOS 18.1 - Browser or app version: Safari - Account or test data: any account, coupon SPRING10 ## Steps to reproduce 1. Add any item to the cart 2. Apply coupon SPRING10 3. Tap Checkout ## Expected result Checkout opens with the discount applied, as it does without a coupon. ## Actual result The Checkout button greys out for a second, then nothing happens. No error is shown. ## Evidence IMG_2041.png
GitHub issue form
GitHub can show reporters a form instead of a blank text box. Save this file as .github/ISSUE_TEMPLATE/bug_report.yml in your repository. GitHub won't submit the issue until the required fields are filled in.
name: Bug report
description: Something doesn't work the way it should
labels: ["bug"]
body:
- type: input
id: environment
attributes:
label: Environment
description: Build or branch, device and OS, browser or app version
placeholder: staging release/2.14, iPhone 15, iOS 18.1, Safari
validations:
required: true
- type: textarea
id: steps
attributes:
label: Steps to reproduce
placeholder: |
1. Add any item to the cart
2. Apply coupon SPRING10
3. Tap Checkout
validations:
required: true
- type: textarea
id: expected
attributes:
label: Expected result
validations:
required: true
- type: textarea
id: actual
attributes:
label: Actual result
validations:
required: true
- type: textarea
id: evidence
attributes:
label: Screenshots or recordings
description: Drag files here
Common mistakes
- Several bugs in one report. File one issue per bug so each one can be closed on its own.
- "It doesn't work." Say what happened instead: an error message, a blank screen, a button that doesn't respond.
- Steps that start in the middle. "Open the cart" assumes the reader already has items in it.
- No build or branch. The bug may already be fixed in a newer build, and the developer can't tell.
- A preference filed as a bug. "The button should be blue" is a feature request.
Skip the template
A template only helps if people fill it in. Qatika asks your users for each of these fields in a chat and files the result as a GitHub issue once they confirm the draft. Read how the bug reporting tool works, or how it runs in Telegram.