# מדווחים על תקלה

> מתחיל כשמישהו מדווח על תקלה מהאפליקציה. רק תהליך הדיווח של Lumen משתמש בו.

Source: https://docs.go-lumen.ai/he/reference/triggers/bug-report

## במבט אחד

| מאפיין | ערך |
| --- | --- |
| **Trigger name** | `bug-report` |
| **Resource** | ClusterTrigger (`lumen.ai/v1alpha1`) |
| **Source** | event |
| **Needs a connection** | no |
| **Produces** | `text`, `fields`, `file` |
| **Emits** | item |
| **Installation must provide** | nothing |

The trigger goes under `spec.triggers` of a Flow. Its outputs are referenced as `<triggerId>.<field>`. A trigger can also carry a `when` condition ("Start only when") and `disabled: true`.

## פלט

צומת מאוחר יותר מפנה לפלט כ-`{nodeId.field}` בטקסט, או כ-`nodeId.field` בתנאי.

| פלט | סוג |
| --- | --- |
| `reportId` | string |
| `description` | string |
| `reporter` | string |
| `reporterEmail` | string |
| `reporterName` | string |
| `context` | object |

## שימוש בתהליך

```yaml title="flow.yaml"
apiVersion: lumen.ai/v1alpha1
kind: Flow
metadata:
  name: bug-report-example
  namespace: tenant-acme
spec:
  displayName: "A problem is reported"
  triggers:
    - id: start
      ref: {name: bug-report}
      next: [notify-in-app]
  nodes:
    - id: notify-in-app
      stepRef: {name: notify-in-app}
      config:
        body: 'Total: {total}'
        title: New invoice from {supplier}
        to: admins
```
