snipe / snipe-it

A free open source IT asset/license management system
https://snipeitapp.com
GNU Affero General Public License v3.0
11.02k stars 3.18k forks source link

Is it possible to checkin an asset through import? #14605

Open afontalv opened 6 months ago

afontalv commented 6 months ago

Debug mode

Describe the bug

Hi,

I am trying to checkin a high number of assets into SnipeIT, and I was wondering if this could be performed through SnipeIT's import functionality?

I have been doing some online reading, and thus far I haven't found anything that says this cannot be done. At the same time, I have tried importing a record to see if it'll change the status of the asset to "Ready to Deploy" and remove the user the asset is assigned to, but this does not work.

Here is the sample record of the asset I attempted to import: Asset Tag: 1234 Status: Ready to Deploy Username:

When the above record is imported (through a csv file), the status does not change, it remains as "Ready to Deploy (Deployed)", and the user that is assigned to remains the same.

So my question is, can you checkin an asset through SnipeIT's import functionality?

Thank you in advance, I couldn't find any references that would assist me and my inquiry, apologies if this question has already been answered.

Reproduction steps

  1. Create a csv file with the following row data: Asset Tag: 1234 Status: Ready to Deploy Username:
  2. Ensure the above asset's status is "Ready to Deployed (Deployed)" and is assigned to a user in SnipeIT
  3. Import the above csv file through SnipeIT's import functionality.

Expected behavior

The asset's status should change from "Ready to Deploy (Deployed)" to "Ready to Deploy", and the assigned user should be removed.

Screenshots

No response

Snipe-IT Version

v5.4.1 build 6746 (g3e22dce11)

Operating System

Ubuntu

Web Server

Apache

PHP Version

7.4.3

Operating System

No response

Browser

No response

Version

No response

Device

No response

Operating System

No response

Browser

No response

Version

No response

Error messages

No response

Additional context

No response

woecifaun commented 2 days ago

@afontalv Hello,

When I CSV imported, I filled in the checkout type to every asset (e.g. location) and let the checkout field empty. Assets with void checkout field were in checkin status.