Skip to content

Implement customizable primary name field #268

@jonasnieberle

Description

@jonasnieberle

Plugin Version

0.4.0

Proposed functionality

Implement a function to customize the primary name field. At the moment it's only possible to set one field as primary name field.

Implement a new field in the custom object to define the primary name field with a Jinja2 Expression, so it's possible to build every primary name field which you want. You can use the value of the fields with Jinja2 Expressions.

Example:

Custom Object: SFP Module

Fields:

  • Serial
  • Manufacturer
  • Name

Primary Name Field: "{{Name}} - {{Manufacturer}}"

Object 1:

  • Serial: 12345
  • Manufacturer: Cisco
  • Name: SFP-10G-LR

Final Primay Name: SFP-10G-LR - Cisco

Object 2:

  • Serial: 122445
  • Manufacturer: Arista
  • Name: SFP-10G-LR

Final Primay Name: SFP-10G-LR - Arista

Use case

The primary name field than can be customized in more detail.

External dependencies

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions