# A Jira issue changes

> Starts when an issue in the Jira projects you pick is created, moves to another status, or changes. Jira is checked every few minutes.

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

## De un vistazo

| Propiedad | Valor |
| --- | --- |
| **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`.

## Salidas

Un nodo posterior se refiere a una salida como `{nodeId.field}` en un texto, o `nodeId.field` en una condición.

| Salida | Tipo |
| --- | --- |
| `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 |

## Ajustes

Se definen bajo `config:` en el disparador del flujo.

| Ajuste | Tipo | Valor por defecto | Descripción |
| --- | --- | --- | --- |
| `projects` (obligatorio) | 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) |

El JSON Schema completo de estos ajustes: [jira-issue-changed.schema.json](https://docs.go-lumen.ai/schemas/triggers/jira-issue-changed.schema.json).
