Support the assignment of tags to objects during bulk CSV import #5430

Closed
opened 2025-12-29 19:27:51 +01:00 by adam · 6 comments
Owner

Originally created by @jeremystretch on GitHub (Sep 27, 2021).

Originally assigned to: @arthanson on GitHub.

NetBox version

v3.0.3

Feature type

New functionality

Proposed functionality

Enable the assignment of tags to objects during bulk import of CSV data. This was originally proposed specifically for IP addresses under #6420, but should apply to all objects which support tags.

Use case

This would enable users to assign tags directly to objects at the time of creation, and avoid needing to edit objects in bulk later to add the tags.

Database changes

No response

External dependencies

No response

Originally created by @jeremystretch on GitHub (Sep 27, 2021). Originally assigned to: @arthanson on GitHub. ### NetBox version v3.0.3 ### Feature type New functionality ### Proposed functionality Enable the assignment of tags to objects during bulk import of CSV data. This was originally proposed specifically for IP addresses under #6420, but should apply to all objects which support tags. ### Use case This would enable users to assign tags directly to objects at the time of creation, and avoid needing to edit objects in bulk later to add the tags. ### Database changes _No response_ ### External dependencies _No response_
adam added the status: acceptedtype: feature labels 2025-12-29 19:27:51 +01:00
adam closed this issue 2025-12-29 19:27:51 +01:00
Author
Owner

@sdktr commented on GitHub (Oct 3, 2021):

Probably above my knowledge level, but trying to get this to work and will submit fore review here

@sdktr commented on GitHub (Oct 3, 2021): Probably above my knowledge level, but trying to get this to work and will submit fore review here
Author
Owner

@sdktr commented on GitHub (Oct 13, 2021):

This patch provides support to add a comma seperated list of tags, within a CSV Import of the 'providers' model. I'm playing around with one thing though: the tags column is required on import if setup this way.

@sdktr commented on GitHub (Oct 13, 2021): This patch provides support to add a comma seperated list of tags, within a CSV Import of the 'providers' model. I'm playing around with one thing though: the tags column is required on import if setup this way.
Author
Owner

@github-actions[bot] commented on GitHub (Dec 13, 2021):

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. Please see our contributing guide.

@github-actions[bot] commented on GitHub (Dec 13, 2021): 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. Please see our [contributing guide](https://github.com/netbox-community/netbox/blob/develop/CONTRIBUTING.md).
Author
Owner

@sdktr commented on GitHub (Apr 19, 2022):

Any hints @jeremystretch why my attempt at solving this results in an 'always required' tags column in the CSVimport?
1a73410d8d

@sdktr commented on GitHub (Apr 19, 2022): Any hints @jeremystretch why my attempt at solving this results in an 'always required' tags column in the CSVimport? https://github.com/sdktr/netbox/commit/1a73410d8d840f8c22da0852b1f04144fc1c94e9
Author
Owner

@DanSheps commented on GitHub (Apr 19, 2022):

@sdktr Perhaps open a draft PR and ask for comments on it.

@DanSheps commented on GitHub (Apr 19, 2022): @sdktr Perhaps open a draft PR and ask for comments on it.
Author
Owner

@arthanson commented on GitHub (Oct 12, 2022):

@sdktr it sounds like you have a potential solution for this? If so can you open a draft PR and we can check it.

@arthanson commented on GitHub (Oct 12, 2022): @sdktr it sounds like you have a potential solution for this? If so can you open a draft PR and we can check it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5430