What is the life cycle of a bug?
A bug life cycle is a set of statuses and allowed transitions that shows, at any moment, whose turn it is. The classic path is New, Assigned, In Progress, Fixed, Verified, Closed, with Reopened if the retest fails. Side exits are Duplicate, Rejected, Cannot reproduce and Deferred. The bug is closed by whoever verifies it, after a retest on the build that contains the fix. Status names depend on the team's workflow.
QA Fundamentals · Bugs and bug reports
The developer moved the bug to Fixed. Who closes it, and when?
A bug in the Fixed state is not closed yet. The developer says it is fixed, but whether this is really so and whether the fix reached the environment QA tests is still unknown. Who moves the ticket on at this stage, why it sometimes goes back, and how Duplicate differs from Rejected all depend on the life cycle. This lesson covers the states a bug goes through, who changes them and what to do about it in Jira, where every team configures the workflow its own way.
How it works and why. A bug life cycle is a set of statuses and the allowed transitions between them. It exists to answer three questions at any moment: who holds the ticket now, what is expected from them next and whether the problem can be considered resolved. The classic path: the bug is filed (New), assigned to a developer (Assigned), the developer works (In Progress), fixes it and hands it over (Fixed, Ready for QA), QA retests (Verified) and closes (Closed). If the retest fails, the bug goes to Reopened and back to the developer. ISTQB lists somewhat different example statuses (open, deferred, duplicate, waiting to be fixed, awaiting confirmation testing, re-opened, closed, rejected), which confirms that there is no single standard set, only a principle: every status shows whose turn it is.
The main path and the return
Besides the main path there are exits for when a fix is not needed or not possible:
| Status | When | Who usually sets it |
|---|---|---|
| Rejected, Not a bug, Works as designed | The behaviour matches the requirement, there is no defect | The developer, after agreeing with QA or the PM |
| Duplicate | The same bug has already been filed | Whoever triages the queue, QA or a lead |
| Cannot reproduce | The developer cannot reproduce it from the steps | The developer; QA adds data or answers the question |
| Deferred, Won't fix | The risk is accepted: the fix is postponed or will not happen | The PO or a manager, not the developer alone |
The statuses in the table are part of the same cycle: "deferred" or "cannot reproduce" does not mean the ticket is thrown away. Such statuses leave a trace to come back to when new information appears.
Example: a ticket that came back. This is the history of one bug (simplified, the status names are illustrative):
PAY-231 Transfer returns 500 for an amount with 3 decimals
New → Assigned (developer A) → In Progress
→ Ready for QA (build 2.14.4)
→ Reopened comment: "100.555 is fixed, 1e2 gives 500, step 3"
→ In Progress → Ready for QA (build 2.14.5)
→ Verified (retest + payments regression run) → Closed
How to read it. The developer fixed the 100.555 case but did not account for an amount written in exponent form. QA did not close the ticket formally after Ready for QA but checked it, and not only the exact scenario from the report but neighbouring inputs too. In Reopened they wrote what exactly stayed wrong and at which step, so the developer does not have to reproduce the bug again. The ticket was closed only after the retest and a payments regression run, because fixing validation could affect neighbouring fields. The difference between a retest and regression is covered in a separate lesson.
The key rules of this example: the bug is closed by whoever verifies it (usually QA), not by whoever fixed it; verification is done on a build that really contains the fix (the build number in a comment makes this visible); a return to Reopened states the reason.
Limits and alternatives. The names and transitions depend on the settings of Jira (or another tracker) on the project, so the answer "it depends on the workflow" is right in an interview, but it must come with a description of the principle. In Jira the status is usually separate from Resolution: in standard projects the Resolution field takes values such as Done, Won't Do, Duplicate, Cannot Reproduce, and it is filled in when closing. Kanban teams with continuous delivery often have a shorter cycle (To Do, In Progress, In Review, Done) and build the QA check into Done or test before the merge, so there is no separate Ready for QA status. In some teams Verified means the bug was checked on the test environment, and Closed is set after the release, when the problem is confirmed in production. These are legitimate variations: what matters is that the team understands every status the same way.
Common mistakes.
- Closing a ticket on the developer's word "fixed": without a retest on the right build the bug may remain.
- Retesting on an environment with an old build and reopening the bug: first compare the build number with the fix.
- Reopening a bug with an empty comment: the developer does not know what does not work and the ticket bounces between two people.
- Closing a duplicate without a link to the main ticket: information is lost and watchers do not see where to follow.
- Silently closing "Cannot reproduce" if the bug was seen several times: better to leave a comment with the frequency and data than to hide the problem.
- Changing statuses arbitrarily with bulk edits: the metrics (the lifetime of a bug, the reopen rate) get numbers that cannot be trusted.
Check yourself
The developer moved a bug to Ready for QA, you retest on the environment and the bug reproduces. What do you check before setting Reopened?
Answer
Whether the environment really has the build with the fix: compare the build number in the ticket with the one on the environment and check the deploy date. Then whether your scenario exactly matches what was fixed and whether cache or session interferes. If the build is right and the bug remains, Reopened with the build number, steps and evidence. If the build is old, a comment to the developer and wait for the deploy.
Why is it better to close a "Duplicate" with a link to the original ticket than to simply delete it?
Answer
A duplicate may carry extra data: another environment, another request, other steps. The link preserves it, and the author and watchers learn where to follow the fix. Deleting loses that information and breaks the ticket history.