# Update a Jira issue

> Changes an issue's summary, description, labels, assignee or priority. Only what you set changes.

Source: https://docs.go-lumen.ai/de/reference/steps/jira-update-issue

## Auf einen Blick

| Eigenschaft | Wert |
| --- | --- |
| **Schrittname** | `jira-update-issue` |
| **Ressource** | ClusterStep (`lumen.ai/v1alpha1`) |
| **Palettengruppe, Kategorie** | save, jira |
| **Credits** | **0.5** Credits bei jedem Erfolg |
| **Externe Wirkung** | ja: Er ändert etwas außerhalb von Lumen, deshalb fragt ein Wiederholungsversuch vorher nach, und ein Test zeigt, was er tun würde, statt es zu tun. |
| **Die Installation muss bereitstellen** | nichts |

## Eingaben

| Eigenschaft | Wert |
| --- | --- |
| **Braucht** | nichts |
| **Liefert** | `fields` |
| **Arbeitet auf** | item: einem Dokument nach dem anderen |

Braucht und Liefert sind Datentypen (file, text, fields, email). Der Editor bietet einen Schritt nur dort an, wo das, was er braucht, schon auf dem Pfad liegt. Siehe [Dokumente und Daten](https://docs.go-lumen.ai/de/concepts/how-flows-run.md#documents-and-data).

## Ausgaben

Ein späterer Knoten verweist auf eine Ausgabe als `{nodeId.field}` in einem Text oder als `nodeId.field` in einer Bedingung.

| Ausgabe | Typ |
| --- | --- |
| `key` | string |
| `url` | string |

## Einstellungen

Wird unter `config:` im Knoten des Flows gesetzt. Texteinstellungen dürfen Platzhalter wie `{nodeId.field}` enthalten.

| Einstellung | Typ | Standardwert | Beschreibung |
| --- | --- | --- | --- |
| `connectorRef` | string |  | Jira connection (minLength 1) |
| `issue` | string |  | An issue key such as PROJ-123, or a value from earlier in the flow. Empty is the issue the flow started from. (maxLength 200) |
| `summary` | string |  | New summary (maxLength 1000) |
| `description` | string |  | New description (maxLength 32000) |
| `labelsAdd` | list of string |  | Add labels (maxItems 20) |
| `labelsRemove` | list of string |  | Remove labels (maxItems 20) |
| `assignee` | string |  | An email or a Jira account id. (maxLength 200) |
| `unassign` | boolean |  | Remove the assignee |
| `priority` | string |  | Priority (maxLength 100) |

Das vollständige JSON Schema dieser Einstellungen: [jira-update-issue.schema.json](https://docs.go-lumen.ai/schemas/steps/jira-update-issue.schema.json).

## Beispiel

```yaml title="config"
labelsAdd:
- paid
labelsRemove:
- awaiting-payment
```

## Im Flow verwenden

Ein Knoten, der `jira-update-issue` ausführt, steht unter `spec.nodes` eines [Flow](https://docs.go-lumen.ai/de/concepts/how-flows-run.md#the-flow-as-yaml). Geben Sie ihm eine beliebige id und nennen Sie in next die ids der nächsten Knoten.

```yaml title="flow.yaml"
apiVersion: lumen.ai/v1alpha1
kind: Flow
metadata:
  name: jira-update-issue-example
  namespace: tenant-acme
spec:
  displayName: "Update a Jira issue"
  triggers:
    - id: start
      ref: {name: manual-run}
      next: [jira-update-issue]
  nodes:
    - id: jira-update-issue
      stepRef: {name: jira-update-issue}
      config:
        labelsAdd:
        - paid
        labelsRemove:
        - awaiting-payment
```
