Event rule - Trigger based of boolean not working (custom fields) #341

Closed
opened 2026-04-05 16:26:42 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @G0nz0uk on 2/17/2026

NetBox Edition

NetBox Community

NetBox Version

v4.5.2

Python Version

3.12

Steps to Reproduce

Hi,

I'm not sure if this is a bug or limitation.

Here is the output to a device via the API for the custom data we add:

"custom_fields": {
    "Maintenance_ID": "8554926",
    "Maintenance": "Astracom",
    "TEST_boolean": true,
    "zabbix_hostid": null,
    "zabbix_proxy_group": null

I've set the "TOC_boolean" to true

Then saved it and I get no trigger.

In the event rule I have

{
    "and": [
        {
            "attr": "custom_fields.TEST_boolean",
            "value": true
        }
    ]
}
,,,

See anything wrong or can this not be done with custom data?

Thanks

### Expected Behavior

Event should be created

### Observed Behavior

Nothing happens
*Originally created by @G0nz0uk on 2/17/2026* ### NetBox Edition NetBox Community ### NetBox Version v4.5.2 ### Python Version 3.12 ### Steps to Reproduce Hi, I'm not sure if this is a bug or limitation. Here is the output to a device via the API for the custom data we add: ``` "custom_fields": { "Maintenance_ID": "8554926", "Maintenance": "Astracom", "TEST_boolean": true, "zabbix_hostid": null, "zabbix_proxy_group": null ``` I've set the "TOC_boolean" to true Then saved it and I get no trigger. In the event rule I have ``` { "and": [ { "attr": "custom_fields.TEST_boolean", "value": true } ] } ,,, See anything wrong or can this not be done with custom data? Thanks ### Expected Behavior Event should be created ### Observed Behavior Nothing happens
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#341