How to turn application errors into GitHub or Jira issues
When an application throws an error, the useful outcome is one clear issue that the right person can act on. Doing that by hand shows you what a good error ticket needs, and where the routine gets tedious. This guide covers a manual routine for GitHub Issues and Jira.
Decide what deserves a ticket
Not every log line needs an issue. Start by agreeing what counts: for most teams that means errors and fatal events, not warnings. Decide who looks at new tickets and how quickly. A ticket that nobody owns is just a longer log.
It also helps to decide in advance how many tickets a single outage may create. If a database goes down, hundreds of errors may arrive within a minute. Filing one issue per distinct error message and failing method, and counting the rest, keeps the tracker readable.
Write down what every error ticket needs
Whoever files the issue should be able to hand it to a developer without a follow-up question. A short template keeps issues consistent.
The template matters most for the first line a developer reads. If the title and message are clear, a reader can decide in seconds whether it is urgent, a known issue or noise.
- A title that names the failing operation and the error type, not just the word crash
- The exception message and the top of the stack trace
- The application name, version and environment
- When it first happened and how many times it has happened since
- What the user was doing, if you know
- A check that no passwords, tokens, e-mail addresses or SQL text were pasted in from the log
Check for a duplicate before you file
The most common mess is ten issues for the same bug. Before filing, search the tracker for the exception type and the failing method. If an open issue exists, add a comment with the new time and count instead of opening another one. If a closed issue matches, reopen it and say the bug has returned. GitHub also says it may suggest possible duplicates while you type a title.
When you update an existing issue, record the count in a consistent place, for example the first comment or a label, so anyone can see how often it happens. A bug that returns every release is a different conversation from one that happened once.
Filing it in GitHub Issues or Jira
GitHub's documentation lists several ways to create an issue. The simplest is the web page.
GitHub also lets you start an issue from a comment, from a line of code, with a URL that carries query parameters, or with the GitHub CLI. Issue templates give new issues a structure and can preset labels, assignees and titles, which is useful for a standing error report format.
In Jira Cloud you select Create in the top navigation bar. The form shows the space and work type, a title, an optional description and the fields your admin made required. You need the Create work items permission in the space. Jira projects often have required fields of their own, so fill those in as your admin configured them.
Jira works the same way in principle: in Atlassian's Quick Create form, up to three required fields appear below the description, and you can expand to the full form to reach every field.
- Open the repository's Issues tab and select New issue
- Pick an issue template if the repository has one that fits, or open a blank issue
- Enter a title and describe the problem
- If you are a maintainer, assign it, add labels, a project or a milestone
- Submit the issue
Keep it going: a weekly check
Manual filing works while the volume is small. A short weekly routine keeps it honest.
- Review new errors from the past week and file or update tickets
- Merge duplicates and close tickets for errors that stopped
- Reopen anything that came back after being closed
- Look for errors that have no ticket at all, which is the usual way a customer-reported crash slips through
Where AutoTicket for GitHub and Jira fits
AutoTicket for GitHub Issues and Jira is coming soon. It is planned to automate this routine for teams that use Serilog: one ticket per bug, a count on repeats, and a reopen when a bug returns, in GitHub Issues or Jira Cloud.
Sources
Coming soon: AutoTicket for GitHub Issues and Jira
File each app bug in GitHub Issues or Jira, not just Azure DevOps. This is an add-on for AutoTicket, SGU's tool that turns application errors into tickets. It lets AutoTicket file each new bug in GitHub Issues or Jira Cloud instead of only Azure DevOps. It is for software teams that log errors with Serilog but track their work in GitHub or Jira.
Get AutoTicket for GitHub Issues and Jira first
Join the list and get 25% off your first purchase when it goes on sale. We email you a discount code on launch day. One code per person, for new customers.
One email when it launches (plus the discount code). No other mail, and you can say stop at any time. See our privacy policy.