Custom properties

Overview

This topic explains how to set up and use custom properties in LaunchDarkly.

If you’re building an integration for LaunchDarkly, it might be helpful to store data for your integration with a LaunchDarkly feature flag. Custom properties allow you to do this.

Each custom property you add to a feature flag can contain a list of associated values. For example, if you create an integration with an issue tracking service, you may want to associate a flag with a list of issues related to a feature’s development.

Create a custom property type

Before you create a custom property type, you must first choose the flag you plan to add it to.

To create a custom property type:

  1. Navigate to the flags list.
  2. Hover on the flag you want to create a new property type for, and click the three-dot overflow menu.
  3. Click Manage flag settings. The flag’s Settings tab appears.
  4. In the “Custom properties” section, click + Add custom property.
  5. Click the Select a property type menu and select “New.”
  6. Enter a Name for the new custom property.
  7. (Optional) Edit the Key if needed.
  8. Enter the Values associated with the custom property.
  9. Click Save.

Add a custom property

To add an existing custom property to a flag:

  1. Navigate to the flags list.
  2. Hover on the flag you want to edit, and click the three-dot overflow menu.
  3. Click Manage flag settings. The flag’s Settings tab appears.
  4. Click + Add custom property.
  5. Select a property type from the menu.
  6. Enter the Values associated with the property.
  7. Click Save:

A flag's custom property configuration fields, for the existing "Jira issues" property.

A flag's custom property configuration fields, for the existing "Jira issues" property.

You can also use the REST API: Create a feature flag

Custom property restrictions

Custom properties have the following restrictions:

  • You can set a maximum of 64 custom properties
  • Each custom property’s name and key must be at most 64 characters
Morty Proxy This is a proxified and sanitized view of the page, visit original site.