{
  "elementsLearnedData": [],
  "elementsTestData": [],
  "flow": {
    "id": "13EDBA74-31FB-4D23-A63B-CF609C664AEE",
    "name": "traceroot: agent failures filed in Jira"
  },
  "flowVersion": {
    "clientMetadata": {
      "viewport": {
        "x": -43.33333333333333,
        "y": 9.696969696969695,
        "zoom": 0.76
      },
      "autoSave": false,
      "descriptions": {
        "flow": "For each new traceroot finding, reads the detector results, root cause and trace, then adds it to the open Jira issue for that detector or files a new one. The owning team picks fix now, known issue or expected behavior in Slack, and the flow carries it out, including Apply Label in traceroot.",
        "initialData": "",
        "initialDataFields": {}
      }
    },
    "description": "For each new traceroot finding, reads the detector results, root cause and trace, then adds it to the open Jira issue for that detector or files a new one. The owning team picks fix now, known issue or expected behavior in Slack, and the flow carries it out, including Apply Label in traceroot.",
    "elements": [
      {
        "clientMetadata": {
          "notes": "Creates a new issue in a Jira project. Supports standard fields like summary, description, issue type, priority, and assignee. Custom fields can also be included in the fields object.",
          "elementId": "EXTENSION:::SHARED:::default:::jira-issues:::createIssue",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "File the finding in Jira Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::jira-issues:::createIssue",
          "legacyElementId": "JS###v1###JiraIssues###createIssue",
          "methodName": "createIssue",
          "position": {
            "x": 523,
            "y": 210
          }
        },
        "flowElementId": "594E20D5-999F-4073-9D52-16922059476E",
        "groupId": null,
        "id": "896A2A8D-84ED-4580-9EF6-5C78BB1F0209",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "projectKey",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Jira project key",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Jira project key"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "issueType",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Bug"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "summary",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Write-up",
                    "subPathSegments": [
                      {
                        "key": "summary",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D21F8B98-2FB6-4D0B-A6C6-9039F8A02BFC"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "description",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Write-up",
                    "subPathSegments": [
                      {
                        "key": "description",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D21F8B98-2FB6-4D0B-A6C6-9039F8A02BFC"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "priority",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "assigneeAccountId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "reporterAccountId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "labels",
              "type": "SIMPLE_LIST",
              "value": [
                {
                  "expression": [
                    {
                      "id": "TEXT",
                      "label": null,
                      "type": "INPUT",
                      "value": "traceroot"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Write-up",
                      "subPathSegments": [
                        {
                          "key": "label",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "D21F8B98-2FB6-4D0B-A6C6-9039F8A02BFC"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                }
              ]
            },
            {
              "name": "additionalFields",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "createIssue",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Jira issue",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "jira-issues",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "File the finding in Jira",
        "nextElementIds": [
          "6D5971EF-682D-41DD-8385-3AE04630BCAD"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Transitions an issue to a different status by executing a workflow transition. Use Get Transitions to see available transitions for an issue.",
          "elementId": "EXTENSION:::SHARED:::default:::jira-issues:::transitionIssue",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Close the issue as expected Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::jira-issues:::transitionIssue",
          "legacyElementId": "JS###v1###JiraIssues###transitionIssue",
          "methodName": "transitionIssue",
          "position": {
            "x": 1248,
            "y": 640
          }
        },
        "flowElementId": "BE91D3D1-70A3-454B-B5E9-76A4CF582E8B",
        "groupId": null,
        "id": "3541F3FA-C4DE-4F19-A7A5-CF47C3B816A1",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "issueIdOrKey",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question card",
                    "subPathSegments": [
                      {
                        "key": "issueKey",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "6D5971EF-682D-41DD-8385-3AE04630BCAD"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "transitionId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Jira close transition ID",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Jira close transition ID"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "comment",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "The owning team marked this finding as expected behavior in Slack, so the issue is closed."
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "transitionIssue",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Closed issue",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "jira-issues",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Close the issue as expected",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Write up the finding Result"
          },
          "position": {
            "x": 1274,
            "y": 49
          }
        },
        "flowElementId": "3D5F9771-1496-4D50-89DE-94D146C495FE",
        "groupId": null,
        "id": "D21F8B98-2FB6-4D0B-A6C6-9039F8A02BFC",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "finding",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Finding",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "F1003809-DFA4-40DC-86CA-E3197295B918"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "trace",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Trace",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "F7E5B7EF-EA94-462E-BC99-F141A658FAC6"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "projectKey",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Jira project key",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Jira project key"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const results = Array.isArray(finding.results) ? finding.results : [];\nconst hit = results.find(r => r.identified) || results[0] || {};\nconst detectorId = hit.detector_id || (finding.signals && finding.signals[0] && finding.signals[0].detector_id) || 'unknown';\nconst detectorName = hit.detector_name || (finding.detectors || [])[0] || 'traceroot detector';\nconst label = 'traceroot-' + String(detectorId).replace(/[^A-Za-z0-9_-]/g, '-');\nconst spans = Array.isArray(trace.spans) ? trace.spans : [];\nconst failing = spans.find(s => s.status && s.status !== 'OK') || spans.find(s => s.error_type) || spans[0] || {};\nconst tokens = spans.reduce((n, s) => n + (Number(s.total_tokens) || 0), 0);\nconst cost = spans.reduce((n, s) => n + (Number(s.cost) || 0), 0);\nconst rootCause = finding.rca && finding.rca.status === 'completed' && finding.rca.result ? finding.rca.result : '';\nconst source = failing.git_source_file ? failing.git_source_file + (failing.git_source_line ? ':' + failing.git_source_line : '') + (failing.git_source_function ? ' in ' + failing.git_source_function + '()' : '') : '';\nconst severity = hit.data && hit.data.severity ? String(hit.data.severity) : '';\nconst what = finding.summary || hit.summary || 'New finding';\nconst lines = [\n  'Detector: ' + detectorName + (severity ? ' (severity ' + severity + ')' : ''),\n  'What happened: ' + what,\n  hit.summary && hit.summary !== what ? 'Detector result: ' + hit.summary : null,\n  'Root cause: ' + (rootCause || 'no root cause analysis on this finding'),\n  'Failing span: ' + (failing.name || 'unknown') + (failing.status_message ? ' (' + failing.status_message + ')' : '') + (source ? ', ' + source : ''),\n  'Trace: ' + (trace.name || '') + ', ' + tokens + ' tokens, cost ' + cost.toFixed(4),\n  trace.git_repo ? 'Code: ' + trace.git_repo + (trace.git_ref ? ' at ' + trace.git_ref : '') : null,\n  'Open the trace in traceroot: ' + (trace.trace_url || ''),\n].filter(Boolean);\nreturn {\n  detectorId,\n  detectorName,\n  label,\n  severity,\n  what,\n  rootCause,\n  failingSpan: failing.name || '',\n  traceUrl: trace.trace_url || '',\n  jql: 'project = \"' + projectKey + '\" AND labels = \"' + label + '\" AND statusCategory != Done ORDER BY created DESC',\n  summary: (detectorName + ': ' + what).slice(0, 250),\n  description: lines.join('\\n'),\n  repeatComment: 'traceroot flagged this again on ' + (finding.timestamp || 'a new trace') + '.\\n' + lines.join('\\n'),\n};"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Write-up",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Write up the finding",
        "nextElementIds": [
          "440042ED-AC13-40BD-B122-03893DFC9287"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 869,
            "y": 219
          }
        },
        "flowElementId": "03EDBE3F-0DEE-4A19-A14B-0BF228707B21",
        "groupId": null,
        "id": "0A412BFD-E7A1-4D5D-AA14-AA0A4C6D78B1",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "62d01f1e-b1bd-4727-b5fb-e6abc1fa3bdd",
                "nestedOperation": null,
                "operation": "isNotEmpty",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Open issues",
                      "subPathSegments": [
                        {
                          "key": "issues",
                          "optional": false
                        },
                        {
                          "index": 0,
                          "last": false
                        },
                        {
                          "key": "key",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "440042ED-AC13-40BD-B122-03893DFC9287"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": []
              }
            ],
            "grouping": [
              "62d01f1e-b1bd-4727-b5fb-e6abc1fa3bdd"
            ]
          },
          "elseComponent": {
            "componentId": "896A2A8D-84ED-4580-9EF6-5C78BB1F0209",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Open issue found",
          "storeResult": false,
          "thenComponent": {
            "componentId": "29F86DDB-8F66-4555-ADA5-DF9EC1898DC1",
            "componentType": "ELEMENT"
          }
        },
        "name": "Open issue for this detector?",
        "nextElementIds": [
          "896A2A8D-84ED-4580-9EF6-5C78BB1F0209",
          "29F86DDB-8F66-4555-ADA5-DF9EC1898DC1"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "elementId": "router",
          "isFirstElement": false,
          "blockDefinitionId": "router",
          "casesViewMode": {
            "22b3e231-c14d-4479-b983-075bb6448c40": "SIMPLE",
            "527ac946-bd74-44b3-8caa-b877e62794dc": "SIMPLE",
            "e20de982-9132-4669-bc62-a5a9ff265fe9": "SIMPLE"
          },
          "position": {
            "x": 873,
            "y": 779
          }
        },
        "flowElementId": "73035182-3A99-48A2-A1B5-89FE140AC54D",
        "groupId": null,
        "id": "DBEF9120-6198-40D8-8D40-041F0198F21C",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Engineer pick",
          "storeResult": true,
          "switchCases": [
            {
              "defaultCase": false,
              "id": "22b3e231-c14d-4479-b983-075bb6448c40",
              "label": "Fix now",
              "nextComponents": [
                {
                  "componentId": "70C9F9BA-4404-4367-8F74-4089C567B374",
                  "componentType": "ELEMENT"
                }
              ],
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "fix"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "defaultCase": false,
              "id": "527ac946-bd74-44b3-8caa-b877e62794dc",
              "label": "Known issue",
              "nextComponents": [
                {
                  "componentId": "D2BA3C4F-F491-48BE-8BE1-AAFE037FCB5F",
                  "componentType": "ELEMENT"
                }
              ],
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "known"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "defaultCase": false,
              "id": "e20de982-9132-4669-bc62-a5a9ff265fe9",
              "label": "Expected behavior",
              "nextComponents": [
                {
                  "componentId": "3541F3FA-C4DE-4F19-A7A5-CF47C3B816A1",
                  "componentType": "ELEMENT"
                }
              ],
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "expected"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "defaultCase": true,
              "id": "aa8a4a34-3087-4969-92b2-dced65d352f5",
              "label": "Everything Else",
              "nextComponents": [],
              "type": "SIMPLE",
              "value": null
            }
          ],
          "switchExpression": {
            "expression": [
              {
                "id": "RESULT",
                "label": "Engineer decision",
                "subPathSegments": [
                  {
                    "key": "decision",
                    "optional": false
                  }
                ],
                "type": "TRIGGER_DATA",
                "value": "D68FCE4F-5705-4595-9EC2-288C839E60D2"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          }
        },
        "name": "What did the engineer pick?",
        "nextElementIds": [
          "D2BA3C4F-F491-48BE-8BE1-AAFE037FCB5F",
          "3541F3FA-C4DE-4F19-A7A5-CF47C3B816A1",
          "70C9F9BA-4404-4367-8F74-4089C567B374"
        ],
        "nextGroupIds": [],
        "type": "VALUE_ROUTER"
      },
      {
        "clientMetadata": {
          "notes": "Gets one detector finding with each detector's result and the root cause analysis, when one ran.",
          "elementId": "EXTENSION:::SHARED:::default:::traceroot:::getFinding",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Read the finding and root cause Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::traceroot:::getFinding",
          "legacyElementId": null,
          "methodName": "getFinding",
          "position": {
            "x": 488,
            "y": 40
          }
        },
        "flowElementId": "C3953C62-D5B6-43E0-B5B8-E7EA36F8A16A",
        "groupId": null,
        "id": "F1003809-DFA4-40DC-86CA-E3197295B918",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "findingId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "New finding",
                    "subPathSegments": [
                      {
                        "key": "finding_id",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "FEFDFB1D-E60D-477C-97F6-1025247A84C9"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "getFinding",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Finding",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "traceroot",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Read the finding and root cause",
        "nextElementIds": [
          "F7E5B7EF-EA94-462E-BC99-F141A658FAC6"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Write the question for the team Result"
          },
          "position": {
            "x": 110,
            "y": 219
          }
        },
        "flowElementId": "6F3B3CD3-39E1-4A19-A0C0-5674D44030D1",
        "groupId": null,
        "id": "6D5971EF-682D-41DD-8385-3AE04630BCAD",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "issue",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Jira issue",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "896A2A8D-84ED-4580-9EF6-5C78BB1F0209"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "detectorName",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Write-up",
                    "subPathSegments": [
                      {
                        "key": "detectorName",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D21F8B98-2FB6-4D0B-A6C6-9039F8A02BFC"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "what",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Write-up",
                    "subPathSegments": [
                      {
                        "key": "what",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D21F8B98-2FB6-4D0B-A6C6-9039F8A02BFC"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "rootCause",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Write-up",
                    "subPathSegments": [
                      {
                        "key": "rootCause",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D21F8B98-2FB6-4D0B-A6C6-9039F8A02BFC"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "failingSpan",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Write-up",
                    "subPathSegments": [
                      {
                        "key": "failingSpan",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D21F8B98-2FB6-4D0B-A6C6-9039F8A02BFC"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "traceUrl",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Write-up",
                    "subPathSegments": [
                      {
                        "key": "traceUrl",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D21F8B98-2FB6-4D0B-A6C6-9039F8A02BFC"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "answerLink",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Answer link",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Answer link"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "executionId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "EXECUTION_ID",
                    "label": null,
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_PATH",
                    "value": "executionContext.executionId",
                    "valueSegments": [
                      {
                        "key": "executionContext",
                        "optional": false
                      },
                      {
                        "key": "executionId",
                        "optional": false
                      }
                    ]
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const link = (decision) => `${answerLink}?execution=${encodeURIComponent(executionId)}&decision=${decision}`;\nconst issueKey = issue.key;\nlet issueUrl = '';\ntry { issueUrl = new URL(issue.self).origin + '/browse/' + issueKey; } catch (e) { issueUrl = ''; }\nconst lines = [\n  `*New traceroot finding: ${detectorName}*`,\n  what,\n  rootCause ? `Root cause: ${rootCause}` : 'No root cause analysis on this finding.',\n  failingSpan ? `Failing span: ${failingSpan}` : null,\n  `Filed as ${issueUrl ? `<${issueUrl}|${issueKey}>` : issueKey}. <${traceUrl}|Open the trace in traceroot>`,\n  'What should happen next?',\n].filter(Boolean);\nreturn {\n  issueKey,\n  issueUrl,\n  text: `New traceroot finding: ${detectorName} (${issueKey})`,\n  blocks: [\n    { type: 'section', text: { type: 'mrkdwn', text: lines.join('\\n') } },\n    { type: 'actions', elements: [\n      { type: 'button', style: 'primary', text: { type: 'plain_text', text: 'Fix it now' }, url: link('fix') },\n      { type: 'button', text: { type: 'plain_text', text: 'Known issue' }, url: link('known') },\n      { type: 'button', text: { type: 'plain_text', text: 'Expected behavior' }, url: link('expected') },\n    ] },\n  ],\n};"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Question card",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Write the question for the team",
        "nextElementIds": [
          "7AE7753A-06C0-42DA-B6BA-23623AF76AAD"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Searches for issues using JQL (Jira Query Language). Returns a list of issues matching the query criteria with configurable fields and pagination support.",
          "elementId": "EXTENSION:::SHARED:::default:::jira-issues:::searchIssues",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Look for an open Jira issue Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::jira-issues:::searchIssues",
          "legacyElementId": "JS###v1###JiraIssues###searchIssues",
          "methodName": "searchIssues",
          "position": {
            "x": 1252,
            "y": 210
          }
        },
        "flowElementId": "49BD6C8A-6601-497C-8780-6D0983E5B5F9",
        "groupId": null,
        "id": "440042ED-AC13-40BD-B122-03893DFC9287",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "jql",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Write-up",
                    "subPathSegments": [
                      {
                        "key": "jql",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D21F8B98-2FB6-4D0B-A6C6-9039F8A02BFC"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "startAt",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "maxResults",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "NUMBER",
                    "label": null,
                    "type": "INPUT",
                    "value": 1
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "fields",
              "type": "SIMPLE_LIST",
              "value": [
                {
                  "expression": [
                    {
                      "id": "TEXT",
                      "label": null,
                      "type": "INPUT",
                      "value": "summary"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                {
                  "expression": [
                    {
                      "id": "TEXT",
                      "label": null,
                      "type": "INPUT",
                      "value": "status"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                }
              ]
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "searchIssues",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Open issues",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "jira-issues",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Look for an open Jira issue",
        "nextElementIds": [
          "0A412BFD-E7A1-4D5D-AA14-AA0A4C6D78B1"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Adds a new comment to a Jira issue. Supports plain text or Atlassian Document Format for rich text formatting.",
          "elementId": "EXTENSION:::SHARED:::default:::jira-issues:::addComment",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Add the finding to the open issue Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::jira-issues:::addComment",
          "legacyElementId": "JS###v1###JiraIssues###addComment",
          "methodName": "addComment",
          "position": {
            "x": 483,
            "y": 340
          }
        },
        "flowElementId": "47A87E8A-AA6B-4AC2-8AB5-4FDBD3F3806B",
        "groupId": null,
        "id": "29F86DDB-8F66-4555-ADA5-DF9EC1898DC1",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "issueIdOrKey",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Open issues",
                    "subPathSegments": [
                      {
                        "key": "issues",
                        "optional": false
                      },
                      {
                        "index": 0,
                        "last": false
                      },
                      {
                        "key": "key",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "440042ED-AC13-40BD-B122-03893DFC9287"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "commentText",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Write-up",
                    "subPathSegments": [
                      {
                        "key": "repeatComment",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D21F8B98-2FB6-4D0B-A6C6-9039F8A02BFC"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "addComment",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Repeat comment",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "jira-issues",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Add the finding to the open issue",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Adds a new comment to a Jira issue. Supports plain text or Atlassian Document Format for rich text formatting.",
          "elementId": "EXTENSION:::SHARED:::default:::jira-issues:::addComment",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Note the known issue on the issue Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::jira-issues:::addComment",
          "legacyElementId": "JS###v1###JiraIssues###addComment",
          "methodName": "addComment",
          "position": {
            "x": 1227,
            "y": 940
          }
        },
        "flowElementId": "62A40AAE-7042-493E-8C34-811874743D7F",
        "groupId": null,
        "id": "2C6D809D-D1CA-45AA-A792-0163A91C3EE0",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "issueIdOrKey",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question card",
                    "subPathSegments": [
                      {
                        "key": "issueKey",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "6D5971EF-682D-41DD-8385-3AE04630BCAD"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "commentText",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "The owning team marked this a known issue in Slack. The trace now carries the label "
                  },
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Known issue label",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Known issue label"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " in traceroot: "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Write-up",
                    "subPathSegments": [
                      {
                        "key": "traceUrl",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D21F8B98-2FB6-4D0B-A6C6-9039F8A02BFC"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "addComment",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Known issue note",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "jira-issues",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Note the known issue on the issue",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Gets one trace with its spans. Without Fields, traceroot returns the skeleton (tree, timing, status, tokens and cost) without per-span input and output.",
          "elementId": "EXTENSION:::SHARED:::default:::traceroot:::getTrace",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Read the failing trace Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::traceroot:::getTrace",
          "legacyElementId": null,
          "methodName": "getTrace",
          "position": {
            "x": 895,
            "y": 40
          }
        },
        "flowElementId": "5B7708D4-0592-4ED2-8BDF-A8512BBE3474",
        "groupId": null,
        "id": "F7E5B7EF-EA94-462E-BC99-F141A658FAC6",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "traceId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "New finding",
                    "subPathSegments": [
                      {
                        "key": "trace_id",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "FEFDFB1D-E60D-477C-97F6-1025247A84C9"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "fields",
              "type": "SIMPLE_LIST",
              "value": [
                {
                  "expression": [
                    {
                      "id": "TEXT",
                      "label": null,
                      "type": "INPUT",
                      "value": "skeleton"
                    }
                  ],
                  "mode": "BASIC",
                  "parseJsonString": false,
                  "resultType": null
                }
              ]
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "getTrace",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Trace",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "traceroot",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Read the failing trace",
        "nextElementIds": [
          "D21F8B98-2FB6-4D0B-A6C6-9039F8A02BFC"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Applies an existing project label to a production trace, or to one of its spans. Create the label in your project settings first. Repeating the call for the same trace, span, author and label returns the original assignment.",
          "elementId": "EXTENSION:::SHARED:::default:::traceroot:::applyLabel",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Label the trace in traceroot Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::traceroot:::applyLabel",
          "legacyElementId": null,
          "methodName": "applyLabel",
          "position": {
            "x": 1251,
            "y": 770
          }
        },
        "flowElementId": "4E45853C-ED7B-4621-99A9-43802D8BDD84",
        "groupId": null,
        "id": "D2BA3C4F-F491-48BE-8BE1-AAFE037FCB5F",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "traceId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "New finding",
                    "subPathSegments": [
                      {
                        "key": "trace_id",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "FEFDFB1D-E60D-477C-97F6-1025247A84C9"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "spanId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "value",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Known issue label",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Known issue label"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "authorId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "flowrunner-slack"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "idempotencyKey",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "applyLabel",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Trace label",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "traceroot",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Label the trace in traceroot",
        "nextElementIds": [
          "2C6D809D-D1CA-45AA-A792-0163A91C3EE0"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Fires for each new detector finding, oldest first. Looks back an hour behind the newest finding seen, so a finding stored late is still caught once.",
          "elementId": "EXTENSION:::SHARED:::default:::traceroot:::onNewFinding",
          "isFirstElement": true,
          "blockDefinitionId": "EXTENSION:::SHARED:::default:::traceroot:::onNewFinding",
          "newElementId": "EXTENSION:::SHARED:::default:::traceroot:::onNewFinding",
          "legacyElementId": null,
          "methodName": "onNewFinding",
          "position": {
            "x": 142,
            "y": 40
          }
        },
        "flowElementId": "444B4091-E43E-4298-A522-7E75BAE8EF69",
        "groupId": null,
        "id": "FEFDFB1D-E60D-477C-97F6-1025247A84C9",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": null,
          "connectionId": null,
          "dynamicData": [],
          "eventName": "onNewFinding",
          "frequency": {
            "repeat": {
              "every": 300
            },
            "schedule": "custom"
          },
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "New finding",
          "serviceId": "traceroot",
          "slaConditions": [],
          "staticData": {},
          "storeResult": true,
          "subtype": "POLLING",
          "type": "CUSTOM"
        },
        "name": "New traceroot finding",
        "nextElementIds": [
          "F1003809-DFA4-40DC-86CA-E3197295B918"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "elementId": "external-callback",
          "isFirstElement": false,
          "blockDefinitionId": "external-callback",
          "position": {
            "x": 492,
            "y": 779
          }
        },
        "flowElementId": "EBE0A62C-B766-4CED-9440-63D46F98BEFD",
        "groupId": null,
        "id": "D68FCE4F-5705-4595-9EC2-288C839E60D2",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": null,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "resultAlias": "Engineer decision",
          "slaConditions": [],
          "storeResult": true,
          "type": "CALLBACK"
        },
        "name": "Wait for the engineer's answer",
        "nextElementIds": [
          "DBEF9120-6198-40D8-8D40-041F0198F21C"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "notes": "Sends messages to Slack channels with optional Block Kit rich layouts. Supports plain text with Slack formatting, or advanced Block Kit JSON for buttons, menus, and interactive elements. Returns the message timestamp and channel ID for later updates or tracking.",
          "elementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Ask the owning team Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 145,
            "y": 770
          }
        },
        "flowElementId": "A270A7DB-F6D2-49CB-A4EF-8A7828EB9869",
        "groupId": null,
        "id": "7AE7753A-06C0-42DA-B6BA-23623AF76AAD",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "channelId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ""
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "messageText",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question card",
                    "subPathSegments": [
                      {
                        "key": "text",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "6D5971EF-682D-41DD-8385-3AE04630BCAD"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sendAsBot",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botName",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botIcon",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "replyBroadcast",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "imageURL",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "blocks",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question card",
                    "subPathSegments": [
                      {
                        "key": "blocks",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "6D5971EF-682D-41DD-8385-3AE04630BCAD"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "sendMessageToChannel",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Question to the team",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Ask the owning team",
        "nextElementIds": [
          "D68FCE4F-5705-4595-9EC2-288C839E60D2"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Adds a new comment to a Jira issue. Supports plain text or Atlassian Document Format for rich text formatting.",
          "elementId": "EXTENSION:::SHARED:::default:::jira-issues:::addComment",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Note the fix on the issue Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::jira-issues:::addComment",
          "legacyElementId": "JS###v1###JiraIssues###addComment",
          "methodName": "addComment",
          "position": {
            "x": 1261,
            "y": 510
          }
        },
        "flowElementId": "C607A798-9CF9-4FD7-AD8D-612E0232A4B3",
        "groupId": null,
        "id": "70C9F9BA-4404-4367-8F74-4089C567B374",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "issueIdOrKey",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question card",
                    "subPathSegments": [
                      {
                        "key": "issueKey",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "6D5971EF-682D-41DD-8385-3AE04630BCAD"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "commentText",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "The owning team picked Fix it now in Slack. traceroot keeps tracking the detector, and the fix can be checked with an evaluation run before it ships."
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "addComment",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Fix note",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "jira-issues",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Note the fix on the issue",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      }
    ],
    "firstElementId": "FEFDFB1D-E60D-477C-97F6-1025247A84C9",
    "groups": [],
    "id": "FF27EF7A-716F-4294-83F3-E03B87FCBC2C",
    "metaInfo": {
      "clientValidationState": {
        "errorMessage": null,
        "valid": true
      },
      "errorMessage": null,
      "executionStaticData": [
        {
          "description": "The key of the Jira project findings are filed in, such as AGENT.",
          "error": null,
          "name": "Jira project key",
          "type": "STRING",
          "value": ""
        },
        {
          "description": "A label that already exists in your traceroot project settings. Applied to the trace when the engineer picks Known issue.",
          "error": null,
          "name": "Known issue label",
          "type": "STRING",
          "value": ""
        },
        {
          "description": "The ID of the transition that closes an issue in your Jira workflow (for example Done). Used when the engineer picks Expected behavior.",
          "error": null,
          "name": "Jira close transition ID",
          "type": "STRING",
          "value": ""
        },
        {
          "description": "The URL of the block Wait for the engineer's answer. The Slack buttons open it.",
          "error": null,
          "name": "Answer link",
          "type": "STRING",
          "value": ""
        }
      ],
      "initialData": null,
      "initialDataDefaultValues": {},
      "ownerFlowVersionId": null,
      "schedule": null,
      "sharedMemory": {
        "anchor": {
          "missingAnchorPolicy": null,
          "path": null,
          "type": "FLOW_MEMORY"
        },
        "expirationInSec": null
      },
      "wasLive": false
    }
  },
  "slaCalendars": [],
  "slaGoals": [],
  "subFlows": [],
  "exportDate": "2026-12-02T01:43:37.057Z"
}
