# OHS Incident Kanban Configuration

The OHS module tracks incident investigations on a Kanban board named **"OHS Incidents"**. The controller caches the board and column identifiers in the `settings` table using the key `ohs_incidents_kanban_refs`.

Example value:

```json
{"board_id":1,"pending_id":2,"in_progress_id":3,"completed_id":4}
```

During incident creation the mapping is loaded from settings. If it is missing the controller looks up the board and the **Pending**, **In Progress** and **Completed** columns, then stores their IDs in the setting for reuse.

## Updating Columns

Administrators may rename or reorder columns. To keep incidents linked to the correct tasks:

1. Update the columns in the Kanban UI.
2. Find the new IDs in `kanban_boards` and `kanban_columns`.
3. Update the JSON value of `ohs_incidents_kanban_refs` in `settings` so it matches the new IDs, or delete the setting to regenerate it on the next incident.

Keeping this setting in sync prevents broken links between incidents and their Kanban tasks.
