> For the complete documentation index, see [llms.txt](https://docs.specsolutions.eu/specsync/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.specsolutions.eu/specsync/reference/configuration/configuration-synchronization/configuration-synchronization-state.md).

# state

This configuration section contains settings to configure how the test case *state* field should be updated. See [Setting Test Case State on change](/specsync/features/push-features/setting-test-case-state-on-change.md) for details.

The following example shows the available options within this sub-section.

```javascript
{
  ...
  "synchronization": {
    ...
    "state": {
      "setValueOnChangeTo": "Design",
      "condition": "@ready"
    },
    ...
  },
  ...
}
```

The `state` setting is a shortcut for configuring the [`synchronization/fieldUpdates` section](/specsync/reference/configuration/configuration-synchronization/configuration-synchronization-fieldupdates.md). The example above is equivalent to the following `fieldUpdates` setting:

```javascript
{
  "synchronization": {
    "fieldUpdates": {
      "System.State": {
        "condition": "@ready"
        "value": "Design",
        "update": "onCreateOrChange"
      }
    }
  },
}
```

## Settings

| Setting              | Description                                                                                                                                                                                                                                                               | Default                                 |
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------- |
| `setValueOnChangeTo` | A state value (e.g. `Design`) to set test case state to when updating or creating a test case during synchronization. Useful for setting back test cases to state `Design` on change. The possible allowed values might depend on the process template your project uses. | don't change test case state            |
| condition            | A [local test case condition](/specsync/features/general-features/local-test-case-conditions.md) of scenarios that should be included for state change (e.g. `@inprogress` , `not @ready`).                                                                               | all scenarios included for state change |

{% content-ref url="/pages/-LVwFCLmwNCOYz1dKMTr" %}
[synchronization](/specsync/reference/configuration/configuration-synchronization.md)
{% endcontent-ref %}

{% content-ref url="/pages/-LVwFCLiKB3ACJLwVZGP" %}
[Configuration reference](/specsync/reference/configuration.md)
{% endcontent-ref %}
