AI Bug Report Triage Workflow: Prompts, Severity Rules and Issue-Tracker Templates
AI bug triagebug trackingJiraGitHub IssuesLinearAI workflows

AI Bug Report Triage Workflow: Prompts, Severity Rules and Issue-Tracker Templates

DDaily Bot Lab
2026-11-21
7 min read

Build a safer AI bug triage workflow with reusable prompts, JSON fields, severity rules, duplicate checks and human approval steps.

AI Bug Report Triage Workflow: Prompts, Severity Rules and Issue-Tracker Templates

AI can turn reports from forms, email, support tickets and user feedback into consistent issue drafts, but it should support—not replace—engineering judgement. This workflow gives you a reusable intake template, extraction prompt, JSON structure, severity rules, duplicate checks and approval steps for Jira, Linear, GitHub Issues or a similar tracker.

Overview

Bug reports rarely arrive in a consistent format. One report may include a stack trace and exact reproduction steps; another may say only that a screen is “broken”. The first job of an AI bug triage workflow is therefore not to decide what to fix. It is to transform incomplete, unstructured input into a reviewable record.

A reliable workflow separates five tasks:

  1. Collect: bring reports into one queue from forms, email, chat, support tickets or feedback tools.
  2. Extract: identify the product area, symptoms, steps, expected behaviour, actual behaviour, environment and evidence.
  3. Compare: look for existing issues and possible duplicates without automatically closing or merging anything.
  4. Classify: suggest severity, priority signals, affected versions and confidence using rules defined by your team.
  5. Approve: have a person check the draft before it is created, edited or routed in the issue tracker.

This division of responsibility matters. A model can identify signals in a report, but severity depends on product context, business risk, contractual commitments and the availability of a workaround. Keep the final decision with an authorised reviewer.

The same pattern can be adapted for related workflows, such as an AI help desk triage bot or an AI code review bot workflow. The prompts should remain versioned and tested, as described in this AI prompt library governance guide.

What to track

1. Use a structured intake template

Give reporters a simple form, even if the original report arrives elsewhere. Required fields should be limited enough to encourage completion, while optional fields preserve useful context.

  • Short summary: one sentence describing the visible problem.
  • Expected behaviour: what the user believes should happen.
  • Actual behaviour: what happened instead, including error text.
  • Reproduction steps: numbered actions, starting from a known state.
  • Frequency: always, often, intermittent or unknown.
  • Impact: blocked, degraded, inconvenient or cosmetic.
  • Environment: product version, browser or client, operating system, device, region and relevant configuration.
  • Evidence: screenshots, logs, recordings, request IDs or links to related records.
  • Reporter context: role or workflow affected, without collecting unnecessary personal data.

Do not ask the model to infer missing facts as though they were confirmed. Store unknown values as null or “unknown”, and preserve the original report alongside the AI-generated draft.

2. Apply a reusable extraction prompt

The following ChatGPT prompt for bug reports can be used manually or as the instruction in an API, Zapier AI workflow or Make.com AI automation. Pass the report as a clearly separated input value.

You are a software bug triage assistant. Convert the report below into a structured draft for human review.

Rules:
- Extract only information supported by the report.
- Do not invent reproduction steps, affected versions, root causes or severity.
- If a field is absent, return null and add a question for the reviewer.
- Separate observed facts from hypotheses.
- Suggest possible duplicate matches, but never state that two issues are duplicates without human confirmation.
- Return valid JSON matching the supplied schema.

For severity, provide a suggested level and the evidence behind it. The reviewer makes the final decision.

REPORT:
{{report_text}}

KNOWN EXISTING ISSUES:
{{candidate_issue_summaries}}

SCHEMA:
{{bug_schema}}

3. Keep a stable JSON structure

A predictable schema makes it easier to validate outputs and map fields into Jira, Linear, GitHub Issues or another tracker. Adapt field names to your system, but avoid changing the structure every time the prompt is edited.

{
  "summary": "string or null",
  "description": "string or null",
  "steps_to_reproduce": ["string"],
  "expected_behavior": "string or null",
  "actual_behavior": "string or null",
  "frequency": "always|often|intermittent|unknown",
  "affected_versions": ["string"],
  "environments": ["string"],
  "evidence": ["string"],
  "suspected_area": "string or null",
  "severity_suggestion": "S1|S2|S3|S4|unknown",
  "severity_evidence": ["string"],
  "confidence": "high|medium|low",
  "missing_information": ["string"],
  "possible_duplicates": [
    {"issue_id": "string", "match_reasons": ["string"]}
  ],
  "human_review_required": true
}

Validate the returned JSON before sending it to an issue tracker. If validation fails, place the record in an exception queue rather than silently creating a partial issue.

4. Use rules for severity, not model intuition

Choose labels that match your team’s existing process. The example below is a starting point, not a universal standard.

LevelUse whenReview question
S1Core service failure, serious data risk or a broad blockage is credible.Is there immediate, material harm or no practical workaround?
S2A major workflow is substantially impaired for a meaningful group of users.Does the issue prevent an important task, with limited workaround options?
S3Functionality is degraded but a workaround exists or the affected scope is limited.Can users complete the task with reasonable additional effort?
S4Cosmetic, wording, minor usability or low-impact behaviour issue.Is the issue useful to fix but unlikely to block work?

Ask the model to return evidence and uncertainty for every suggestion. A high-confidence extraction does not necessarily mean a high-confidence severity decision.

5. Detect duplicates conservatively

Duplicate detection works best as a review aid. Compare the normalised summary, product area, error text, reproduction path, affected version and environment. A similar title alone is not enough. A report may resemble an old issue but represent a regression, a different customer impact or a separate underlying defect.

For each proposed match, retain the issue ID, matching evidence and unresolved differences. A reviewer should choose one of four outcomes: link as duplicate, link as related, keep separate or request more information.

Cadence and checkpoints

Treat the workflow as a maintained AI prompt template rather than a one-time automation. A practical cadence is:

  • Per report: validate the input, run extraction, check duplicates, review severity and approve the tracker action.
  • Per sprint or release: sample approved drafts against the final issues. Look for missing fields, misleading summaries, incorrect version labels and inconsistent severity.
  • Monthly: review exception rates, reviewer edits, unconfirmed duplicate suggestions and reports that required repeated clarification.
  • Quarterly: update product-version options, environment fields, severity definitions, routing rules, access controls and integration mappings. Recheck the current documentation for the model provider and issue tracker before changing API or automation settings.
  • After an incident or major release: add representative examples to the test set and check whether the workflow distinguishes regressions from new defects.

Track operational fields such as time from intake to review, percentage of drafts needing substantial edits, missing-information frequency, duplicate-review outcomes and severity changes after human review. These measures help you improve the workflow without treating model output as ground truth.

How to interpret changes

A rise in AI-triaged reports does not automatically mean product quality has declined. It may reflect a new reporting channel, a larger user base, better observability or a release that encourages feedback. Interpret changes alongside source, version, environment and reporting volume.

When reviewers frequently change severity, inspect the decision rules. The prompt may be receiving too little information about workarounds, affected scope or business-critical workflows. When reviewers rewrite summaries, add examples of concise, observable titles. When duplicate suggestions are weak, improve candidate retrieval before changing the language model prompt; the model cannot compare against issues it never receives.

When many records contain unknown versions or environments, improve the intake form or add trusted metadata from the reporting system. Do not ask the model to guess these values. Similarly, a high number of missing reproduction steps may indicate that reporters need guided fields, screenshots or a follow-up question flow.

Review privacy and security at each checkpoint. Send only the data required for triage, remove secrets and credentials, restrict who can view raw reports, and avoid placing sensitive logs into prompts unless your approved workflow permits it. Check automation permissions and ensure an AI-generated issue cannot grant access, change production systems or close another issue without an explicit control.

When to revisit

Revisit this workflow at least monthly for operational review and quarterly for a fuller update. Return sooner when any of the following changes:

  • the product adds or removes versions, platforms, environments or major workflows;
  • severity definitions, ownership teams or escalation paths change;
  • you introduce a new intake source such as a support system or feedback widget;
  • the issue tracker changes required fields, labels, permissions or API behaviour;
  • the model, provider configuration or structured-output capability changes;
  • a release produces a new class of reports, regressions or duplicate patterns;
  • reviewers override the AI draft often enough to suggest a systematic problem.

At the next review, export a small, representative sample of recent reports and compare the original text, AI draft and approved issue. Update the prompt only after identifying the failure pattern. Test the revised version against older examples, record the change in your prompt library, and keep a rollback version. Finally, confirm that human approval remains in the workflow and that field mappings still work in the target tracker.

The safest implementation is deliberately modest: automate collection, extraction and drafting first; require approval for severity, duplicate decisions and tracker actions. As the evidence improves, you can remove repetitive review steps selectively—but keep an audit trail for every automated recommendation.

Related Topics

#AI bug triage#bug tracking#Jira#GitHub Issues#Linear#AI workflows
D

Daily Bot Lab

Editorial Team

Senior editor and content strategist. Writing about technology, design, and the future of digital media. Follow along for deep dives into the industry's moving parts.