Thanks for the deletion hint. I already saw this somewhere but i forgot it.
Does somebody know if there is a better option to create a bunch of items?
There is still the possibility to directly edit the jsondb, but i don’t think it’s the best option to directly edit the database?
I think there is an issue open. If not go and create one. There is no guarantee that all issues get implemented but without an issue few requests get implemented.
What Thomas said.
What Thomas said.
Unfortunately no.
Note, even with text based configs, you really are not renaming the Item. What you are doing when you load a .items file is destroying all the Items that came from that file and then recreating all the Items defined in that file.
The Item’s name is it’s unique ID and it is how that Item is referenced in: metadata, links, rules, persistence, the UIs. So renaming is a much bigger deal than just changing the name on the Item itself.
Consequently, the only way change the name of an Item is to destroy the old one and create the new one with the new name. So “bulk” changing the name of Items is probably not going to be on the horizon.
However, there is the ability to bulk import Items using .items file config syntax. I’ve never tried it but you might be able to bulk update Items using that.