# 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/reference/steps/jira-update-issue

## At a glance

| Property | Value |
| --- | --- |
| **Step name** | `jira-update-issue` |
| **Resource** | ClusterStep (`lumen.ai/v1alpha1`) |
| **Palette group, category** | save, jira |
| **Credits** | **0.5** credits each time it succeeds |
| **Side effects** | yes: It changes something outside Lumen, so a retry asks first and a test shows what it would do instead of doing it. |
| **Installation must provide** | nothing |

## Inputs

| Property | Value |
| --- | --- |
| **Needs** | nothing |
| **Produces** | `fields` |
| **Works on** | item: one document at a time |

Needs and Produces are data types (file, text, fields, email). The editor offers a step only where what it needs is already on the path. See [Documents and data](https://docs.go-lumen.ai/concepts/how-flows-run.md#documents-and-data).

## Outputs

A later node references an output as `{nodeId.field}` in text, or `nodeId.field` in a condition.

| Output | Type |
| --- | --- |
| `key` | string |
| `url` | string |

## Settings

Set under `config:` on the flow node. Text settings may contain `{nodeId.field}` placeholders.

| Setting | Type | Default | Description |
| --- | --- | --- | --- |
| `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) |

The full JSON Schema of these settings: [jira-update-issue.schema.json](https://docs.go-lumen.ai/schemas/steps/jira-update-issue.schema.json).

## Example

Tag an issue as paid

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

## Use it in a flow

A node that runs `jira-update-issue` goes under `spec.nodes` of a [Flow](https://docs.go-lumen.ai/concepts/how-flows-run.md#the-flow-as-yaml). Give it any id, and list the next node ids in next.

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