YouTrack Server
 
2019.2
Get YouTrack Standalone
You are viewing the documentation for an earlier version of YouTrack Server. View this page in the current documentation

State-machine Rules

Last modified: 17 December 2019

A state-machine rule regulates the transitions from one value to another for a custom field. YouTrack provides templates for two types of state-machine rules.

  • A basic state-machine rule that regulates the transitions from one value to another for a custom field. To learn more about this type of state-machine, see Basic State-machines.

  • A state-machine rule that imposes separate sets of state transitions based on the current value in a specified field. To learn how to script this type of state-machine, see State-machine Rules State-machines per Issue Type.

Both of these state-machine types are built using a similar collection of parameters.

You can apply a state-machine rule to any custom field. However, the most common use case for a state-machine rule is to regulate transitions between values for the State field or another custom field that stores a state type.

When a state-machine rule is applied to a project, the options that are shown in the drop-down list for the field are restricted to the transitions that are defined in the state-machine rule for the current state. Custom fields that are regulated by a state-machine rule are marked with a Workflow-driven field icon. The action that is defined for each value in the state-machine rule is displayed in the drop-down list. The actual values are shown to the right. The following image illustrates how the list of allowed transitions for the State field changes based on the current value.

Statemachine field values