# כרטיס ב-Jira משתנה

> מתחיל כשכרטיס בפרויקטים שבחרתם ב-Jira נוצר, עובר לסטטוס אחר או משתנה. Jira נבדק כל כמה דקות.

Source: https://docs.go-lumen.ai/he/reference/triggers/jira-issue-changed

## במבט אחד

| מאפיין | ערך |
| --- | --- |
| **Trigger name** | `jira-issue-changed` |
| **Resource** | ClusterTrigger (`lumen.ai/v1alpha1`) |
| **Source** | event |
| **Needs a connection** | yes, one that provides `jira` |
| **Produces** | `fields`, `text` |
| **Emits** | item |
| **Installation must provide** | nothing |

A flow using this trigger names a Connector in `connectorRef`. Connection types that provide `jira`: \[Jira\](/reference/connections/jira).

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` בתנאי.

| פלט | סוג |
| --- | --- |
| `event` | string |
| `key` | string |
| `summary` | string |
| `status` | string |
| `previousStatus` | string |
| `assignee` | string |
| `assigneeId` | string |
| `reporter` | string |
| `labels` | array |
| `project` | string |
| `issueType` | string |
| `priority` | string |
| `url` | string |
| `description` | string |
| `changedFields` | array |
| `createdAt` | date |
| `updatedAt` | date |
| `jiraConnection` | string |

## הגדרות

Set under `config:` on the flow trigger.

| הגדרה | סוג | ברירת מחדל | תיאור |
| --- | --- | --- | --- |
| `projects` (חובה) | list of string |  | Project keys, such as OPS. (minItems 1; maxItems 20) |
| `events` | list of string |  | Empty is all three. (maxItems 3) |
| `issueTypes` | list of string |  | IssueTypes, Statuses and Labels keep only issues of these types, now in these statuses, or carrying one of these labels. (maxItems 20) |
| `statuses` | list of string |  | Only issues now in these statuses (maxItems 20) |
| `labels` | list of string |  | Only issues with one of these labels (maxItems 20) |
| `jql` | string |  | Added with AND, for example assignee = currentUser(). (maxLength 1000) |
| `pollMinutes` | integer | `5` | PollMinutes is how often Jira is asked. (minimum 1; maximum 60) |
| `importExisting` | integer | `0` | Starts one run for each of the newest N matching issues, once, when the trigger is first switched on. (minimum 0; maximum 50) |

ה-JSON Schema המלא של ההגדרות: [jira-issue-changed.schema.json](https://docs.go-lumen.ai/schemas/triggers/jira-issue-changed.schema.json).
