AperioFlow Start free

Blog

Writing an error up as a task: what to include so someone else can fix it

A message that says 'checkout is broken' sends the next person off to find out what you meant. By the time they have asked three questions, the afternoon has gone. A good error task answers those questions before anyone asks them, so the person who picks it up can start work straight away.

This guide covers what to write, in what order, and why each part matters.

The three facts every error task needs

Every error task needs three facts: what happened, where, and how often.

What happened is the outcome, in one sentence. Say what the user or the system saw, not what you think caused it. 'Payment page returns a blank screen after the card details are submitted' is useful. 'Payments are broken' is not, because it could mean almost anything.

Where is the place the error shows up. That might be a page address, an API endpoint, a background job name, or an environment such as production or staging. If the browser or device matters, say so. If you are not sure, say that too.

How often tells the reader whether this is a one-off or a pattern, and whether it is still happening. 'Once, at 14:20 on Tuesday' and 'every time, for accounts on the annual plan' call for very different investigations. If you do not know, write 'not known yet' and leave it there.

Keep these three facts at the top of the task. Someone scanning a list of tasks should be able to tell from the first few lines whether it is urgent and where to look.

Paste the error message exactly as it appears

Copy the error message. Do not paraphrase it, tidy it up, or type it from memory. A paraphrase drops the detail that often matters most, such as the name of the missing field or the code that points to a specific failure.

Include the full error line, the first few lines of the stack trace, the time it was logged, and any request or trace ID you have. Put it in a code block so the formatting survives:

TypeError: Cannot read properties of undefined (reading 'id')
    at applyDiscount (cart.js:84:23)
    at checkout (checkout.js:41:12)

If the message is long, paste the part that names the file and the line, and say where the rest lives. The reader should not have to ask you to find it again.

Add steps to reproduce, or say plainly that you cannot

Steps to reproduce are the most valuable part of an error task. Write them as a numbered list, starting from a known state:

  1. Log in with an account on the annual plan.
  2. Add two items to the basket.
  3. Apply the code SPRING, then submit the order.

Include the details that change the result: account type, input values, the browser, the data already in the system. If the error happens only with certain data, say which data.

Sometimes you cannot reproduce it. That is useful information too, so say so plainly and say what you tried: 'Cannot reproduce on staging with a test account. Only seen in production, for orders with more than one item.' Someone reading that knows where to look next. A task that says nothing about reproduction leaves them guessing whether you ever tried.

One owner, one next step, one definition of done

Every error task needs three more things.

One owner. Put one name on the task. A task with two owners usually has none, because each person assumes the other has it. If you do not know who should own it, say that, and assign it to whoever is triaging.

One next step. Write the first concrete action, not the whole plan. 'Check the discount service logs between 14:00 and 15:00 for the order ID above' is a next step. 'Investigate' is not. The owner should be able to start without another conversation.

One definition of done. Say how you will know it is fixed. 'The error no longer appears in the logs for 24 hours after the deploy, and a test order with two items and a discount code completes' can be checked. 'Fixed' cannot. Writing the definition of done before work starts also stops the task being closed on the strength of a change that looked right but did not solve the problem.

An example of a weak task and a better one

Here is a weak task:

Title: Checkout broken Body: Some users say it doesn't work. Please look.

The reader has no idea what 'it' is, which users, where, or since when. They will need to message you before they can do anything.

Here is a better version of the same task:

Title: Checkout returns 500 after a second item is added with a discount code What happened: The order submit call returns a 500 error and the customer sees a generic failure page. Where: Production, checkout page and the /api/orders endpoint. How often: Every time the basket has two or more items and a discount code is applied. Single-item orders are fine. First seen at 14:20 on Tuesday. Error: (the exact message and stack trace, pasted in a code block) Steps to reproduce: Log in on a test account, add two items, apply code SPRING, submit. Owner: Priya Next step: Check the logs for applyDiscount between 14:00 and 15:00 for the order ID in the trace. Definition of done: A test order with two items and a discount code completes on production, and no applyDiscount errors appear for 24 hours after the deploy.

The second version takes a few minutes longer to write. It saves the owner an hour of questions, and it means the person who closes the task can check the result against the definition of done rather than against memory.

Keep the error and the task together

An error is easier to fix when the record of it and the work to fix it sit in the same place. With AperioFlow you can plan work, catch errors and watch uptime in one place, so the task and the error it came from are not in two different tools. Start free at https://app.aperioflow.co.uk/#/signup

Start free More from the blog

Built for the people who write the code and answer the phone when it breaks.

Run from the UK. Hosted in the UK and Europe.

UK time --:--

Already in?Open the app Start free today
View our policies