Enable filtering objects by assigned custom fields #8932

Open
opened 2025-12-29 20:43:02 +01:00 by adam · 4 comments
Owner

Originally created by @Taz86 on GitHub (Dec 7, 2023).

NetBox version

v3.6.6

Python version

3.11

Steps to Reproduce

Created custom Field
Added custom Field to Devices and Virtual Machines
You can see the number of objects that have this Custom field in use, but you cannot click them to show them.
Maybe this is because they are not searchable (as discussed in https://github.com/netbox-community/netbox/issues/13579)

Expected Behavior

Objects are clickable so you can see reference objects

Observed Behavior

Not clickable

Originally created by @Taz86 on GitHub (Dec 7, 2023). ### NetBox version v3.6.6 ### Python version 3.11 ### Steps to Reproduce Created custom Field Added custom Field to Devices and Virtual Machines You can see the number of objects that have this Custom field in use, but you cannot click them to show them. Maybe this is because they are not searchable (as discussed in https://github.com/netbox-community/netbox/issues/13579) ### Expected Behavior Objects are clickable so you can see reference objects ### Observed Behavior Not clickable
Author
Owner

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

Thank you for opening a bug report. Unfortunately, the information you have provided is not sufficient for someone else to attempt to reproduce the reported behavior. Remember, each bug report must include detailed steps that someone else can follow on a clean, empty NetBox installation to reproduce the exact problem you're experiencing. These instructions should include the creation of any involved objects, any configuration changes, and complete accounting of the actions being taken. Also be sure that your report does not reference data on the public NetBox demo, as that is subject to change at any time by an outside party and cannot be relied upon for bug reports.

@jeremystretch commented on GitHub (Dec 7, 2023): Thank you for opening a bug report. Unfortunately, the information you have provided is not sufficient for someone else to attempt to reproduce the reported behavior. Remember, each bug report must include detailed steps that someone else can follow on a clean, empty NetBox installation to reproduce the exact problem you're experiencing. These instructions should include the creation of any involved objects, any configuration changes, and complete accounting of the actions being taken. Also be sure that your report does not reference data on the public NetBox demo, as that is subject to change at any time by an outside party and cannot be relied upon for bug reports.
Author
Owner

@Taz86 commented on GitHub (Dec 7, 2023):

Hi,

Sorry, ill be more thorough.

#Create Custom Field Choices

  • Name: Certificates Choices
  • Extra Choices: *.foo.bar

#Create custom field:

  • name: SSL_Certificate
  • content type: dcim | device , virtualization | virtual machine
  • Type: Multiple selection
  • Required: No
  • Search Weight: 1000
  • Filter logic: Loose
  • UI visibility: Read/write
  • Display Weight: 100
  • Clonable: yes
  • Choice Set: Certificate Choices

#Create Device

  • Name: test
  • Role: test
  • Device type: testHW
  • Site: local
  • Status: active

Custom Fields

  • SSL_Certificate: *.foo.bar

When checking custom fields after adding *.foo.bar to the test device I can see in Related Objects "Devices 1" but I cannot click on it.

Hope this clarifies it a bit

@Taz86 commented on GitHub (Dec 7, 2023): Hi, Sorry, ill be more thorough. #Create Custom Field Choices * Name: Certificates Choices * Extra Choices: *.foo.bar #Create custom field: * name: SSL_Certificate * content type: dcim | device , virtualization | virtual machine * Type: Multiple selection * Required: No * Search Weight: 1000 * Filter logic: Loose * UI visibility: Read/write * Display Weight: 100 * Clonable: yes * Choice Set: Certificate Choices #Create Device * Name: test * Role: test * Device type: testHW * Site: local * Status: active **Custom Fields** * SSL_Certificate: *.foo.bar When checking custom fields after adding *.foo.bar to the test device I can see in Related Objects "Devices 1" but I cannot click on it. Hope this clarifies it a bit
Author
Owner

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

Blocked by #11538, as it's not currently possible to filter for non-empty custom selection fields.

@jeremystretch commented on GitHub (Dec 8, 2023): Blocked by #11538, as it's not currently possible to filter for non-empty custom selection fields.
Author
Owner

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

Reclassifying this as a feature request.

@jeremystretch commented on GitHub (Dec 26, 2023): Reclassifying this as a feature request.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8932