Skip to content

add more contact fields to contact assignments table #12955

@matejv

Description

@matejv

NetBox version

v3.5.4

Feature type

Change to existing functionality

Proposed functionality

Contact assignments table would include additional columns that correspond to contact fields:

  • Title
  • Phone
  • Email
  • Address
  • Link
  • Description

These fields would not be shown by default. Users could add them to the table via "Table Configuration" dialog.

Field definitions in NetboxTables can use accessor argument to refer to fields that span model relations. To for ContactAssignments table you could refer to contact fields. Something like this:

class ContactAssignmentTable(NetBoxTable):
...

    contact_phone = tables.Column(
        accessor=Accessor('contact__phone'),
        verbose_name='Phone'
    )
...
    class Meta(NetBoxTable.Meta):
        model = ContactAssignment
        fields = (... 'contact_phone', ...)

Use case

When looking up contacts for a site, the most often needed data is a persons phone number or email. Currently to access this information you need to click on each contact to see them. With this change one could see a list of phone numbers for all contacts assigned to a site and just start calling them down the list.

Database changes

No database changes required

External dependencies

None

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: featureIntroduction of new functionality to the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions