---
title: "AI agent failures from traceroot filed in Jira with the root cause | FlowRunner flow"
description: "Each new traceroot finding lands in Jira with the root cause and the failing trace. The owning team picks fix now, known issue or expected behavior in Slack, and the flow does the rest."
url: https://flowrunner.ai/flows/traceroot-agent-failures-filed-in-jira
date_published: 2026-12-01
date_modified: 2026-12-01T10:15:06-08:00
---

# AI agent failures from traceroot filed in Jira with the root cause

Each new traceroot finding lands in Jira with the root cause and the failing trace. The owning team picks fix now, known issue or expected behavior in Slack, and the flow does the rest.

## The prompt

When traceroot flags a new finding on our agent, read the finding with each detector's result and the root cause, then read the trace for the failing span, tokens and cost. Look in our Jira project for an open issue from the same detector. If there is one, add the new finding to it as a comment. If not, file a bug with the summary, the root cause and a link to the trace, and ask the owning team in Slack with three buttons: Fix it now, Known issue and Expected behavior. Wait for the answer. Fix it now notes it on the issue. Known issue puts our known-issue label on the trace in traceroot and notes it on the issue. Expected behavior closes the issue.

FlowRunner Prompt to Flow built this flow from that request. Here it is as it opens in the editor.

## The flow

[Import this flow](https://flowrunner.ai/downloads/prompt-to-flow/traceroot-agent-failures-filed-in-jira.json)

-   [traceroot](https://flowrunner.ai/integrations/traceroot)
-   [Jira Issues](https://flowrunner.ai/integrations/jira-issues)
-   [Slack](https://flowrunner.ai/integrations/slack)

Download the file, then in FlowRunner click + beside Flows, pick it under Import a Flow Version and click Create. [How importing works](https://docs.flowrunner.ai/manage/flows#importing-a-flow)

## What each step does

1.  New traceroot finding Checks traceroot every 5 minutes for new detector findings on your production traces and starts a run for each one, oldest first.
2.  Read the finding and root cause Gets the finding with each detector's result and the root cause analysis, when traceroot ran one.
3.  Read the failing trace Gets the trace with its spans, so the issue names the failing span, its source line, the tokens and the cost, with a link to the trace in traceroot.
4.  Look for an open Jira issue Searches your Jira project for an open issue that carries this detector's label.
5.  Open issue for this detector? When the detector already has an open issue, the new finding is added to it as a comment and nobody is pinged again.
6.  File the finding in Jira Otherwise files a bug with the detector, what happened, the root cause, the failing span and a link to the trace, labeled with the detector.
7.  Ask the owning team Posts the finding to the team's Slack channel with the issue link and three buttons: Fix it now, Known issue and Expected behavior.
8.  Wait for the engineer's answer The run waits for the click. Fix it now is noted on the issue. Known issue applies your label to the trace in traceroot and notes it on the issue. Expected behavior closes the issue with a comment.

## Need it built for you? Our team does custom work.

Tell us the process. Our implementation team at Midnight Flow builds it around how you work, tests it on your real data, and keeps it running, in your own FlowRunner workspace.

[Have us build it](https://midnightflow.ai/packages/custom?utm_source=flowrunner.ai&utm_medium=referral&utm_campaign=general&utm_content=flows.aside&utm_term=traceroot-agent-failures-filed-in-jira)

## Before you turn it on

-   Enter your traceroot project API key, and your Jira site URL, email and API token. Connect your Slack account.
-   Set the flow setting Jira project key to the project findings go to, and Jira close transition ID to the transition that closes an issue in your workflow.
-   Create the label known-issue in your traceroot project settings, or change the flow setting Known issue label to a label you already have.
-   Copy the URL of the block Wait for the engineer's answer into the flow setting Answer link. The Slack buttons open it.
-   Pick your team's channel in Ask the owning team.

[Everything FlowRunner does with traceroot](https://flowrunner.ai/integrations/traceroot)

---
Markdown version of https://flowrunner.ai/flows/traceroot-agent-failures-filed-in-jira. Site index: https://flowrunner.ai/llms.txt
