rt-assets-import-csv(1)

πŸ“¦
version 2.3 Β· 2 versions
, in debian bookworm

πŸ’– rt-assets-import-csv(1) πŸ’–

okay bestie, so this is the manual for rt-assets-import, living in the Request Tracker Reference section of the manual pages. it's giving "one script, big job," and honestly? it ate. πŸ¦‹


✨ NAME ✨

rt-assets-import β€” import assets to rt πŸ’…


🌸 SYNOPSIS 🌸

rt-assets-import /path/to/assets.csv
rt-assets-import --update /path/to/assets.csv

πŸŽ€ DESCRIPTION πŸŽ€

okay so this script imports and updates assets from a CSV into rt. literally that's the whole vibe. ✨

for all the configuration deets, go peek at RT::Extension::Assets::Import::CSV β€” that's where the settings live, iykyk.


πŸ‘‘ OPTIONS πŸ‘‘

  • --config file , -c file β€” hands you an explicit extra config file that gets loaded before any other configuration files. super useful when you're doing per-import AssetsImportUniqueCF and AssetsImportFieldMapping settings, like when you're importing from multiple sources and their columns do NOT match. 🌈
⚠️ bestie, listen: if you use this option, RT_SiteConfig.pm should not contain a setting for AssetsImportFieldMapping. if it does, the two hashes get merged and you get unexpected behavior. not the slay we're going for. πŸ’€
  • --update β€” without this, existing assets (figured out by matching AssetsImportUniqueCF values) are left completely untouched, like, don't perceive them. πŸ™ˆ with this option, records get updated based on their values in the CSV. glow-up mode activated. ✨
  • --insert β€” by default, assets that don't have AssetsImportUniqueCF values will just throw a warning at you. with this flag, they get inserted instead (generating their own id as needed) after all the other operations. main character energy, they get their own id and everything. πŸ‘‘
  • --mdy, --dmy β€” forces RT to parse dates as mm/dd/yy or dd/mm/yy respectively. and if you don't use either one? RT just defaults to the DateDayBeforeMonth setting, which itself defaults to dd/mm/yy. so like, day-before-month is the factory setting, periodt. πŸŽ€
  • --debug β€” gives you verbose output on STDERR while the import is happening. very "tell me everything," very demure, very mindful. 🫢

πŸ’œ reminder: every one of these flags is doing something real, so don't just vibe-check your way through a production import. read them fr fr.

perl v5.34.0 πŸ¦‹ 2022-06-24 πŸŽ€ β€” that's the version and the date this page was last living its truth, bestie. go import something iconic. πŸ’–βœ¨

πŸ“¦ where this page comes from