Add further filter for custom field with type "date" #8135

Closed
opened 2025-12-29 20:32:53 +01:00 by adam · 3 comments
Owner

Originally created by @martinum4 on GitHub (May 29, 2023).

NetBox version

v.3.5.2

Feature type

Change to existing functionality

Proposed functionality

Using Django low-level-filter-options is not for everyone and can get confusing and doesn't have an integrated function to compare to today (that I'm aware of)

Example: it's the 01.01.2023, we have devices A-B with the following custom field "warranty_end":
A 2022-12-01
B 2023-02-28

A filter proposed by this FR finds all devices where the date is already in the past or due in the next X days. e.g.: X=90 finds devices A and B

This seems not to be covered with #7604 since one would have to manually define today every time when accessing the filters mentioned there.

Use case

  • Have a list of devices that require a warranty renewal/compliance-check
  • Track UPS Battery-Replacement
  • further extend the function of device lists and counts with the upcoming changes of #12742

Database changes

None expected due to all being django filtering.

External dependencies

None expected due to all being django filtering.

Originally created by @martinum4 on GitHub (May 29, 2023). ### NetBox version v.3.5.2 ### Feature type Change to existing functionality ### Proposed functionality Using Django low-level-filter-options is not for everyone and can get confusing and doesn't have an integrated function to compare to today (that I'm aware of) Example: it's the 01.01.2023, we have devices A-B with the following custom field "warranty_end": A 2022-12-01 B 2023-02-28 A filter proposed by this FR finds all devices where the date is already in the past or due in the next X days. e.g.: X=90 finds devices A and B This seems not to be covered with #7604 since one would have to manually define today every time when accessing the filters mentioned there. ### Use case - Have a list of devices that require a warranty renewal/compliance-check - Track UPS Battery-Replacement - further extend the function of device lists and counts with the upcoming changes of #12742 ### Database changes None expected due to all being django filtering. ### External dependencies None expected due to all being django filtering.
adam added the type: featurepending closure labels 2025-12-29 20:32:53 +01:00
adam closed this issue 2025-12-29 20:32:53 +01:00
Author
Owner

@github-actions[bot] commented on GitHub (Sep 1, 2023):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide.

@github-actions[bot] commented on GitHub (Sep 1, 2023): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. **Do not** attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our [contributing guide](https://github.com/netbox-community/netbox/blob/develop/CONTRIBUTING.md).
Author
Owner

@martinum4 commented on GitHub (Sep 20, 2023):

I am willing to set out a bounty of 10€ for this feature if anyone wants to implement it, is there a issue bounty entity that NetBox is working with?

@martinum4 commented on GitHub (Sep 20, 2023): I am willing to set out a bounty of 10€ for this feature if anyone wants to implement it, is there a issue bounty entity that NetBox is working with?
Author
Owner

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

Closing as stale

@jeremystretch commented on GitHub (Oct 13, 2023): Closing as stale
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8135