When you create a feature flag, you can specify information for it, which includes a name, a description, owners, and tags. This information helps you and your team manage your feature flags and customize them to your team's workflow. To create a feature flag, do the following:
- From the left navigation, click Feature flags. The feature flag list view appears.
- Click the Create feature flag button to create a new feature flag.
- Enter the following information for your new feature flag to help you and your team manage your feature flags and customize them to your team's workflow:
- Name. Enter a name your team can recognize. Feature flag names must start with a letter and can contain the characters - _ a-z A-Z 0-9. They cannot be named datetime, string, set, or integer because those are reserved words.
- Traffic type. Select a traffic type you want to use this feature flag for. A traffic type indicates the type of key you use to split your traffic, for example, user, account, store, etc.
Note: Once a feature flag is created with specific traffic types, you cannot change the traffic type or name. This is done so the experiment data is not mixed from different traffic types, which could contaminate the results. To use a different traffic type, create a new feature flag with the desired traffic type.
- Owners. By default, a user creating a feature flag is an owner along with the Admin group. You can add more users or groups as owners for your feature flag. Use owners to organize a feature flag to those owned by me for filtering and notification purposes, and to grant edit permissions in environments that restrict who can edit.
- Tags. Optionally add one or more tags to categorize a feature flag or associate it with a particular team, feature release, area of your product, or other internal structure. Tags are useful for filtering lists and rollout boards. Be aware that tags are case sensitive.
- Description. Optionally provide a description of a feature flag. The description explains the flag’s purpose and what functionality is controlled. If it’s being used for an experiment, use this to provide information about the goal.
- External objects. Optionally associate a feature flag with one or more external objects if a compatible integration is configured. Examples of integrations include Jira and Azure DevOps.
- Click the Create feature flag button to create your feature flag. Your new flag displays.
To configure your feature flag for a particular environment, do one of the following:
- Click the Initiate environment button. This allows you to create and define targeting rules and treatments on the Definitions tab.
- From the Copy from field, select the desired environment you want copied and click the Copy button. This allows you to automatically configure your feature flag to a particular environment. Once done, you can create and define targeting rules within this feature flag.