# Run Workflow

The Run Workflow step calls another workflow and waits for it to return. Use it when shared logic should live in one child workflow instead of being copied into multiple parent workflows.

## Configuration[​](#configuration "Direct link to Configuration")

| Field         | Required | Description              |
| ------------- | -------- | ------------------------ |
| Workflow      | Yes      | Child workflow to run.   |
| Input mapping | Yes      | Values for child inputs. |

Only workflows that start with Call Workflow can be selected. Input mapping passes values into each input defined by the child workflow's Call Workflow trigger.

## Input Variables[​](#input-variables "Direct link to Input Variables")

Input mapping fields can use variables from the parent workflow trigger and earlier parent workflow steps.

For example, a parent workflow triggered by a GitHub issue can map:

```
issueTitle = {{githubIssue.title}}

issueBody = {{githubIssue.body}}
```

Every child workflow input must be mapped before the parent workflow can be saved.

## Output Variables[​](#output-variables "Direct link to Output Variables")

Use the Run Workflow step slug shown on the card. The example below uses `classifyIssue`.

Returned variables come from the child workflow's Return Workflow step.

| Variable                     | Description          |
| ---------------------------- | -------------------- |
| `{{classifyIssue.priority}}` | Returned `priority`. |
| `{{classifyIssue.category}}` | Returned `category`. |

## Example[​](#example "Direct link to Example")

Run a child workflow that classifies an issue, then use `{{classifyIssue.priority}}` in an If step or message step in the parent workflow.
