Simple condition (without and/or) does not work in event rule #9101

Closed
opened 2025-12-29 20:45:27 +01:00 by adam · 1 comment
Owner

Originally created by @markkuleinio on GitHub (Jan 17, 2024).

Originally assigned to: @Julio-Oliveira-Encora on GitHub.

Deployment Type

Self-hosted

NetBox Version

v3.7.0

Python Version

3.11

Steps to Reproduce

  1. Create webhook: Name = Test, URL = http://127.0.0.1:9000 (doesn't matter in this case, it won't be triggered but is required to configure event rule)
  2. Go to Event rules - Add:
  • Name = Test
  • Content types = Circuit
  • select Updates
  • set Conditions:
{
    "attr": "status.value",
    "value": "active"
}
  • Action type = Webhook
  • Webhook = Test
  • Create

Expected Behavior

Event rule is created

Observed Behavior

Error is shown about the condition:

Ruleset must have exactly one logical operator (found 2)

The examples in https://docs.netbox.dev/en/stable/reference/conditions/ look the same: simple JSON object with attributes attr and value.

Originally created by @markkuleinio on GitHub (Jan 17, 2024). Originally assigned to: @Julio-Oliveira-Encora on GitHub. ### Deployment Type Self-hosted ### NetBox Version v3.7.0 ### Python Version 3.11 ### Steps to Reproduce 1. Create webhook: Name = Test, URL = http://127.0.0.1:9000 (doesn't matter in this case, it won't be triggered but is required to configure event rule) 2. Go to **Event rules - Add**: - Name = Test - Content types = Circuit - select Updates - set Conditions: ``` { "attr": "status.value", "value": "active" } ``` - Action type = Webhook - Webhook = Test - **Create** ### Expected Behavior Event rule is created ### Observed Behavior Error is shown about the condition: **Ruleset must have exactly one logical operator (found 2)** The examples in https://docs.netbox.dev/en/stable/reference/conditions/ look the same: simple JSON object with attributes `attr` and `value`.
adam added the type: bugstatus: acceptedseverity: lowtopic: event rules labels 2025-12-29 20:45:27 +01:00
adam closed this issue 2025-12-29 20:45:28 +01:00
Author
Owner

@Julio-Oliveira-Encora commented on GitHub (Jan 19, 2024):

Please, someone could assign it to me?

@Julio-Oliveira-Encora commented on GitHub (Jan 19, 2024): Please, someone could assign it to me?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9101