• Home
  • Integrations
  • SDKs
  • Guides
  • API docs
    No results for ""
    EXPAND ALL

    EDIT ON GITHUB

    Workflow templates

    Read time: 1 minute
    Last edited: Jul 26, 2022
    Workflow templates is an Enterprise feature

    Workflow templates is available to customers on an Enterprise plan. To learn more, read about our pricing. To upgrade your plan, contact Sales.

    Overview

    This topic explains how to create and use workflow templates to automate your rollouts at scale. It describes how to save workflows as templates that can be reused with other flags.

    Using workflow templates

    If your organization follows a standard procedure for rolling out feature flags, you can turn your custom workflow into a template so other account members can use it. Workflow templates are saved versions of workflows that you can apply and use with any flags in your account.

    Understanding how workflow templates are applied across flags

    You can create workflow templates in the context of a flag and an environment, but you can apply them to any flag in any environment or project.

    When you apply a template to a different flag or environment from where it was created, any environment or flag specific pieces of the workflow, such as variations, segments, or users are cleared. LaunchDarkly prompts you to fill in these blanks with appropriate values for the new flag and environment.

    Saving a workflow as a template

    Here is how to save a workflow as a template:

    1. Navigate to a feature flag.
    2. Click on the Workflows tab.
    3. Click the Create workflow button.
    4. Select the option to create a Custom workflow.
    Select the option to create a Custom workflow.
    Select the option to create a Custom workflow.
    1. Build the workflow with the steps that you’d like each flag to follow.
    2. Click Save as template.
    3. Give the template a name, a key, and add an optional description. Then click Next.
    4. Click Start workflow if you would also like to run the workflow on the flag.

    Applying templates to flags

    Here is how to apply a template to a flag:

    1. Navigate to a feature flag.
    2. Click on the Workflows tab.
    3. Click Create workflow.
    4. Select the option to use a Template.
    Select the option to use a template.
    Select the option to use a template.
    1. Search for the template that you would like to use on the feature flag.
    2. Review the workflow and enter any missing details.
    3. Click Start workflow to begin the workflow.

    Deleting templates

    At this time, templates can only be deleted through the API.

    Use the REST API: Delete workflow template