Event action_data not passed to webhooks #10570

Closed
opened 2025-12-29 21:33:15 +01:00 by adam · 0 comments
Owner

Originally created by @tjdavis3 on GitHub (Dec 12, 2024).

Originally assigned to: @jeremystretch on GitHub.

Deployment Type

Self-hosted

Triage priority

N/A

NetBox Version

v4.1.7

Python Version

3.10

Steps to Reproduce

  1. Create an event rule with action data
  2. action data is not accessible to the webhook

Expected Behavior

action data should be able to be added to the webhook body and/or in the default body

Observed Behavior

data is not passed to the webhook;

It appears the data can be sent by adding it to the context object in netbox/netbox/extras/webhooks.py send_webhook(...) since it is contained in the event_rule object that is passed.

Originally created by @tjdavis3 on GitHub (Dec 12, 2024). Originally assigned to: @jeremystretch on GitHub. ### Deployment Type Self-hosted ### Triage priority N/A ### NetBox Version v4.1.7 ### Python Version 3.10 ### Steps to Reproduce 1. Create an event rule with action data 2. action data is not accessible to the webhook ### Expected Behavior action data should be able to be added to the webhook body and/or in the default body ### Observed Behavior data is not passed to the webhook; It appears the data can be sent by adding it to the context object in `netbox/netbox/extras/webhooks.py` send_webhook(...) since it is contained in the event_rule object that is passed.
adam added the type: bugstatus: acceptedseverity: mediumtopic: event rules labels 2025-12-29 21:33:15 +01:00
adam closed this issue 2025-12-29 21:33:15 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10570