custom field - selection - object - custom filter #8410

Closed
opened 2025-12-29 20:36:22 +01:00 by adam · 2 comments
Owner

Originally created by @ITJamie on GitHub (Aug 3, 2023).

NetBox version

v3.5.7

Feature type

Data model extension

Proposed functionality

On custom fields where Type is Object or Multiple Objects it would be great to have a filter option to limit the objects available to choose.
It would be great if that filter supported referencing the current object too.

Use case

for example.

new custom field
contenttype: device, Type:object, Object Type: IP address.

a custom filter (similar to the dashboard filter logic) to limit the choices could be defined, thus when editing a device it would limit the amount of ips available to choose from.

uses:
on a device/vm object: limiting IP address's to ones assigned to the device/vm
on a device object: limiting a device selection to devices in the same rack as the object
on a rack object: limiting a device selection to items in that rack

Database changes

additional field on custom fields model to store filter string

External dependencies

No response

Originally created by @ITJamie on GitHub (Aug 3, 2023). ### NetBox version v3.5.7 ### Feature type Data model extension ### Proposed functionality On custom fields where Type is Object or Multiple Objects it would be great to have a filter option to limit the objects available to choose. It would be great if that filter supported referencing the current object too. ### Use case for example. new custom field contenttype: device, Type:object, Object Type: IP address. a custom filter (similar to the dashboard filter logic) to limit the choices could be defined, thus when editing a device it would limit the amount of ips available to choose from. uses: on a device/vm object: limiting IP address's to ones assigned to the device/vm on a device object: limiting a device selection to devices in the same rack as the object on a rack object: limiting a device selection to items in that rack ### Database changes additional field on custom fields model to store filter string ### External dependencies _No response_
adam added the type: featurestatus: revisions needed labels 2025-12-29 20:36:22 +01:00
adam closed this issue 2025-12-29 20:36:22 +01:00
Author
Owner

@jeremystretch commented on GitHub (Oct 13, 2023):

@ITJamie I'm afraid it's not clear from your description what specific change(s) you're proposing. Would you like to expand on the implementation you have in mind? How would the "filter string" you mention work? (An example or two would be helpful.)

@jeremystretch commented on GitHub (Oct 13, 2023): @ITJamie I'm afraid it's not clear from your description what specific change(s) you're proposing. Would you like to expand on the implementation you have in mind? How would the "filter string" you mention work? (An example or two would be helpful.)
Author
Owner

@jeremystretch commented on GitHub (Dec 14, 2023):

This issue is being closed as no further information has been provided. If you would like to revisit this topic, please first modify your original post to include all the requested detail, and then ask that the issue be reopened.

@jeremystretch commented on GitHub (Dec 14, 2023): This issue is being closed as no further information has been provided. If you would like to revisit this topic, please first modify your original post to include all the requested detail, and then ask that the issue be reopened.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8410