See llms.txt for all machine-readable content.

Back to Templates

Triage Jira bug reports and request missing details with OpenAI

Quick Overview

This workflow runs hourly (or manually) to review new Jira bug reports, uses OpenAI to judge whether each report is reproducible, comments to request missing details when needed, optionally moves the issue to a “Waiting for info” status, and labels issues to prevent reprocessing.

How it works

  1. Runs every hour on a schedule or on demand via a manual trigger.
  2. Searches Jira for bug issues matching the configured JQL and retrieves each issue’s summary, description, reporter, and labels.
  3. Converts the Jira description from Atlassian Document Format (ADF) to plain text and sends the key details to OpenAI to assess reproducibility and, if unclear, draft a targeted follow-up message.
  4. Validates the OpenAI response and classifies each issue as reproducible, unclear (with a message), or invalid (needs human review).
  5. For unclear issues, posts a comment in Jira that tags the reporter (or a configured requester field) and asks only for the missing information.
  6. If configured, moves unclear issues to the Jira status named “Waiting for info” by finding and executing the appropriate transition.
  7. Updates the Jira issue labels to mark it as checked (ai-repro-checked) or flag it for human review (ai-needs-human).

Setup

  1. Add a Jira Software Cloud API credential (email + API token) and ensure it has permission to search issues, add comments, transition issues, and edit labels.
  2. Add an OpenAI API credential and confirm the configured model ID exists for your account.
  3. In the configuration code, set your Jira base URL, JQL, max issues per run, requester field, “Waiting for info” status name (or leave it blank to disable moves), and the labels to apply.
  4. Ensure your Jira workflow allows a transition from the matched issues’ current status to the configured “Waiting for info” status.
  5. (Optional) Set a test issue key in the configuration and run the workflow manually to validate the end-to-end behavior before activating it.