# Managing Workflows

:::tip[Work on your configuration locally]

The [offline Workflow Editor](/bitrise-ci/bitrise-cli/installing-and-upgrading-the-offline-workflow-editor) runs on your own computer: you can edit your project's configuration YAML file without logging in to [bitrise.io](https://www.bitrise.io/), and your configuration never leaves your network. It offers most features of the Workflow Editor.

:::

## Chaining Workflows together

You can set up multiple Workflows to run in succession. The order of these Workflows can be rearranged, new Workflows can be added to the chain and existing Workflows can be removed from it at any time.

1. 1. Log in to Bitrise and select **Bitrise CI** on the left, then select your project.
1. Click the **Workflows** button on the main page.
1. Hover over the Workflow card and click the **Chain Workflows** icon button that appears.

   ![Workflow card with the Chain Workflows icon button highlighted](/img/workflows-and-pipelines/2026-07-06-chain-workflows-button.png)
1. In the **Chain Workflows** drawer, select a Workflow from the list and click **Add before** or **Add after**.
1. Click **Save changes** in the top right corner.

**Chaining Workflows in YAML**

In this example, we're chaining together three Workflows: `test`, `deploy`, and `ci`, using the before_run and after_run parameters.

```yaml
workflows:
  test:
    envs:
    - IS_TEST: "true"
    steps:
    # test Steps to run

  deploy:
    before_run:
    - test
    steps:
    # steps to deploy

  ci:
    before_run:
    - test
    after_run:
    - deploy
```

For more information on how to manage Workflows directly in the `bitrise.yml` file, check [Workflow level properties](/bitrise-ci/references/configuration-yaml-reference#workflow-level-properties).

## Rearranging chained Workflows

Once you have a chain, you can easily rearrange the order of Workflows in a drag-and-drop menu.

1. 1. Log in to Bitrise and select **Bitrise CI** on the left, then select your project.
1. Click the **Workflows** button on the main page.
1. On the Workflow card, hold down the drag handle on the left side of a chained Workflow and drag it to the desired position.

   ![Chained Workflow card with the drag handle on the left side](/img/workflows-and-pipelines/2026-07-06-chain-workflows-drag-handle.png)
1. Click **Save changes** in the top right corner.

## Workflow priority

You can set a priority for each individual Workflow. The priority setting determines the position of a standalone build of the Workflow in the build queue: the higher the priority, the sooner the Workflow's build will run.

You can assign a priority either in the Workflow Editor or in the configuration YAML file of your project. The priority is always an integer between -100 and 100: the higher the number, the higher the priority. The default priority is 0.

For more information about build priority, and the order of precedence between different types of priorities, check out [Build priority](/bitrise-ci/configure-builds/configuring-build-settings/build-priority).

## Utility Workflows

:::important[Step bundles]

Instead of utility Workflows, we strongly recommend using [Step bundles](/bitrise-ci/workflows-and-pipelines/steps/step-bundles). They allow you to group multiple Steps into a single unit and reuse them at any point of a Workflow.

:::

Bitrise supports a special type of Workflow called a utility Workflow. A utility Workflow's ID always starts with an underscore character: for example, `_setup`. They are usually used to perform tasks that are required either at the start or at the end of several different Workflows: for example, you can separate git cloning and activating your SSH key into a utility Workflow instead of adding those Steps to every Workflow of an app.

You can create a utility Workflow [the exact same way](/bitrise-ci/workflows-and-pipelines/workflows/creating-a-workflow) as you create a regular one. To denote it as a utility Workflow, you just need to prefix the name with an underscore.

:::important[Utility Workflows cannot run alone]

Utility Workflows cannot be run as standalone Workflows. They need to be chained together with a normal Workflow, either before or after the Workflow: [Chaining Workflows together](/bitrise-ci/workflows-and-pipelines/workflows/managing-workflows#chaining-workflows-together).

:::

**Utility Workflow in YAML**

In this example, we have two utility Workflows, called `_setup` and `_send-notifications`. They are chained together with two Workflows called `test` and `ci` using the before_run and after_run parameters.

```yaml
workflows:
  _send-notifications:
    steps:
    # send notifications

  _setup:
    steps:
    # setup Steps to run

  test:
    before_run:
    - _setup
    envs:
    - IS_TEST: "true"
    steps:
    # test Steps to run

  ci:
    before_run:
    - test
    after_run:
    - _send-notifications
```

For more information on how to manage Workflows directly in the `bitrise.yml` file, check [Workflow level properties](/bitrise-ci/references/configuration-yaml-reference#workflow-level-properties).
