# Interface: AutomationWhen

Defined in: [packages/core/src/schemas/automations.ts:68](https://github.com/leifriksheim/minca/blob/main/core/src/schemas/automations.ts#L68)

What sets an automation off: the records a query finds, those a condition holds for

## Properties

| Property | Modifier | Type | Description | Defined in |
| ------ | ------ | ------ | ------ | ------ |
| <a id="property-from"></a> `from?` | `readonly` | readonly `string`[] | Only records by someone holding one of these roles: a role name, or `member` for any | [packages/core/src/schemas/automations.ts:74](https://github.com/leifriksheim/minca/blob/main/core/src/schemas/automations.ts#L74) |
| <a id="property-holds"></a> `holds?` | `readonly` | [`Filter`](https://minca.dev/api/core/type-aliases/Filter.md) | A filter over each result, which may also read `include:<name>`, what the query included (`checkFilter`) | [packages/core/src/schemas/automations.ts:72](https://github.com/leifriksheim/minca/blob/main/core/src/schemas/automations.ts#L72) |
| <a id="property-others"></a> `others?` | `readonly` | `boolean` | Only records someone other than its runner wrote | [packages/core/src/schemas/automations.ts:76](https://github.com/leifriksheim/minca/blob/main/core/src/schemas/automations.ts#L76) |
| <a id="property-query"></a> `query` | `readonly` | [`Query`](https://minca.dev/api/core/interfaces/Query.md) | `records.query`'s format; `include` is how an automation counts or reads what points at a record | [packages/core/src/schemas/automations.ts:70](https://github.com/leifriksheim/minca/blob/main/core/src/schemas/automations.ts#L70) |
