Class FeatureFlagDefinitions.Definition

java.lang.Object
com.atlassian.jira.config.FeatureFlagDefinitions.Definition
Enclosing class:
FeatureFlagDefinitions

public class FeatureFlagDefinitions.Definition extends Object
A builder intermediate class that allows for static definition
  • Method Details

    • offByDefault

      public FeatureFlagDefinitions.Definition offByDefault()
      Makes feature flag disabled by default - it is default behaviour of feature flags
      Returns:
      updated builder object
    • onByDefault

      public FeatureFlagDefinitions.Definition onByDefault()
      Makes feature flag enabled by default
      Returns:
      updated builder object
    • safeFlag

      Marks feature flag as analytics friendly. Analytics friendly feature flags have hard coded (not changing) feature key that is not connected with any user generated data. Examples of good feature key: 'jira.my.feature.alternative.option'; 'jira.fix.use.old.behaviour' Examples of bad feature key: 'jira.my.feature.' + issueKey + '.alternative'; 'jira.fix.ISSUE_KEY.old' If you are unsure if your feature flag key is analytics friendly don't use this option. Your feature flag will be reported by analytics but feature key will be hashed with SHA256 or other hashing algorithm. For details see FeatureFlagStatisticEvent. Default behaviour of Feature Flags is to mark all flags as analytics unfriendly. It means that you must mark your feature flag as safe when creating, otherwise is will be marked as unsafe.
      Returns:
      updated builder object
    • unsafeFlag

      public FeatureFlagDefinitions.Definition unsafeFlag()
      Marks feature flag as not analytics friendly. It is default behaviour. See safeFlag() for details. Use only if you want to make sure that your feature flag key will be hashed in analytics events.
      Returns:
      updated builder object
    • define

      public FeatureFlag define()
      This will define the feature flag, add it to the parent FeatureFlagDefinitions and return the created.
      Returns:
      the created feature flag