snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

Feature Request - Allow multiple values for custom fields

Open tutankh opened this issue 8 years ago • 12 comments

Expected Behavior (or desired behavior if a feature request)

Ability to create and maintain custom fields which have multiple values. For example, a device's IP addresses, or software packages installed.


tutankh avatar Jan 24 '18 20:01 tutankh

I don't really understand what you mean here. You can select the tex format and enter whatever you like, single values or more. For pieces of data that are not directly related to each other, you should create multiple custom fields instead.

snipe avatar Jan 24 '18 20:01 snipe

I'm just thinking it would make it easier to view, add to, or report on the data without having to delimit it somehow via scripting.

tutankh avatar Jan 24 '18 21:01 tutankh

You wouldn't delimit via scripting, you would just create multiple fields to separate the data, no?

snipe avatar Jan 24 '18 21:01 snipe

Some machines have multiple answers to the same query, like IP addresses. Some machines owned by IT staff have upwards of 8 IPs on a single machine, and there isn’t really a way to predict how many it’s going to have. It seems a bit redundant to create 8 custom fields for “IP 1... 2 ...etc “ or “app 1 ... 2... etc.” When instead, I think it would be helpful to add info as an instance of the same field.

tutankh avatar Jan 25 '18 03:01 tutankh

That's a level of complexity for edge cases that we're honestly not likely to address any time soon. It's an edge case, and a comma-separated list of IPs in a text field works just fine for most people.

snipe avatar Jan 25 '18 06:01 snipe

Voicing support for this. We are having to do some serious acrobatics to make this work for us.

In addition to what was named above mac addresses for devices such as switches/servers, or even laptops (wired and wireless connections) are much much harder to do and more prone to error because of this.

benjamin-kirkbride avatar Dec 18 '18 18:12 benjamin-kirkbride

This feature would be really handy in custom fields typed as listbox. There was issue https://github.com/snipe/snipe-it/issues/1676 that needed to be able to enter multiple display connections. Our use case would be to toggle every access bit that a key has.

I don't think this is a rare edge case in any way. There is tons of use cases for supporting multiple predefined values.

Zachu avatar Apr 24 '19 06:04 Zachu

I support this too! Something in the likes of this: Selecting multiple values from a list or a table with a listbox.

I would use it to store information about different video outputs on an asset.

patrice-geo avatar May 28 '19 02:05 patrice-geo

+1

I support this too! Something in the likes of this: Selecting multiple values from a list or a table with a listbox.

I would use it to store information about different video outputs on an asset.

ShamikhI avatar Jul 24 '20 13:07 ShamikhI

+1

We have our Access-Keys in Snipe-IT and we would like to link all rooms, where key X has access. So i need a custom field "List" where i can select multiple rooms.

DerKiLLa avatar Aug 10 '20 10:08 DerKiLLa

+1 please reopen.. It would be nice if we had the posibillity to annotate more than one meta data to an asset in one user defined field. i have an metadata cataloge with more than 100 elements. it is not applicable to create for each element an own definied field.

heikoboehme avatar Sep 22 '21 08:09 heikoboehme

I ran into this when adding a "Switch" Model. The switch has 32 Ports, and I was hoping to be able to have a "SwitchPort" custom field that would iterate. I wound up just using the API to create the Custom fieldset with 32 custom fields.

Smithx10 avatar Feb 16 '23 02:02 Smithx10