Skip to content

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

@G0nz0uk

Description

@G0nz0uk

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions