How to Write a Good Bug Report: Template and Example
What a useful bug report contains, how to write steps to reproduce, severity versus priority, and a worked checkout bug in Markdown for GitHub or Jira.

How to Write a Good Bug Report: Template and Example
A bug report has one purpose: to let someone who was not there see the problem for themselves. Developers spend a surprising amount of time on reports that cannot be reproduced, and many of those come back marked works for me. A few habits fix most of that: a precise title, numbered steps, the expected and actual result side by side, and the exact environment.
The parts of a bug report
The title should say what is wrong and where, in one line. Severity says how badly the bug hurts the product, and priority says how soon it should be fixed. The component and version or build number tell the team which code to look at. Steps to reproduce start from a known state and list one action per line. Expected and actual results show the gap. The environment covers device, operating system, browser or app version. Evidence such as screenshots, logs and console errors removes guesswork, and a workaround helps support teams while the fix is under way.
Worked example
The bug report template builder opens with a sample from an online shop: Checkout total ignores discount code on mobile Safari. It is rated Major severity and P2 priority, in the Checkout component of web version 4.18.2, build 9012.
The steps to reproduce are four short lines:
- Open the shop on an iPhone in Safari.
- Add any item to the basket.
- Enter discount code SAVE10 and tap Apply.
- Go to the payment page.
The expected result is that the total on the payment page is 10% lower. The actual result is that the basket shows the discount but the payment page shows the full price. It happens every time.
The environment narrows the search: an iPhone 15 on iOS 18.1 with Safari, and the bug is not seen in Chrome on Android or on desktop. The evidence lists screenshots of the basket and payment page and a console error, a TypeError at checkout.js line 212. The notes give a workaround: refreshing the page before paying makes it work.
A developer reading this report already has a strong lead: something in the checkout script fails on Safari when the page moves from basket to payment, and a refresh recalculates the total. That is the difference between a good report and a vague one.
The tool also builds a Markdown version with headings, numbered steps and bullet lists, which renders cleanly in a GitHub issue and in Jira Cloud's editor.
Severity versus priority
The two are often confused. Severity is about impact: a crash that loses data is critical, a misaligned icon is trivial. Priority is about scheduling, and it depends on business context. A trivial typo in the company name on the home page may be P1, while a major bug in a feature nobody uses may wait. Keep both fields and let the team's own definitions decide.
Common mistakes
Vague titles. Checkout broken tells nobody where to look. Name the symptom, the place and, if known, the condition, such as a browser.
Missing steps. I applied a code and it did not work leaves out which code, which page and which device. If a step seems too obvious to write, write it anyway.
Expected result left out. Sometimes the behaviour is intended. Saying what you expected and why lets the team decide whether it is a bug or a misunderstanding.
Several bugs in one report. If you find two problems, file two reports. One ticket per bug keeps fixes and tests clean.
No version number. A bug may already be fixed in a later build. The version tells the developer which code to check out.
Security flaws in public trackers. If the bug exposes data or allows unauthorised access, report it through the vendor's private security channel instead of a public issue.
Before you submit
Run through your own steps once more on a clean session. If the bug still appears, attach the screenshots and logs to the ticket itself, since the evidence box holds only descriptions and file names, and submit.



