You are not logged in.
Pages: 1
Hello,
I use GLPI as root entity only.
Now, I have to make another entity which is not included current one
but completely separated old (current) one.
It means...
<Now>
[root] = [current]
<To be>
[root]
- [current]
- [new one]
So I searched this forum,
I found a solution, moving assets in current root entitiy to new sub-entity.
But I have too many assets and also tickets and users, etc.
I want to do that by changing records with SQL query on the GLPI database table, glpi_entities.
Please help me to show sample query.
Thank you.
Offline
Probably a safer way than manipulating the database directly would be to use the REST API update Items
***https://github.com/ramylson/glpi/blob/master/glpi/apirest.md#update-items***
Offline
InvisibleJim, thank you for your reply.
But is it possible changing the root entity itself to sub one?
As I wrote, I have too many items and tickets etc. under the current root entity,
so, I don't want to change the items but the root entity itself.
Offline
No, you cannot create a new root entity and move the original as a child entity. If you try to force it by changing things directly in the database, it will cause issues.
GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.
Offline
cconard96, Thank you.
So is there any solution to move all of the things -- items, tickets, dropdowns and whatever I've not recognize -- in the root entity to new child entity?
I think changing entity hierarchy is easier...
Last edited by d_inoue (2024-10-02 07:09:01)
Offline
You can add items to the entity transfer list in bulk using massive actions (Select all from search results, click actions button, select Add to transfer list).
It is still a manual process though.
GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.
Offline
Hi, i will have the same problem and try to move in my test instance.
I have this
ROOT
- E1
- E2
- E3
and want
NEW ROOT
|- old ROOT
| |- E1
| |- E2
|-E3
So i create a new sub entity and indicates it as father for E1 and E2
I rename the root
In database, i use a script thaht change the entity_id present in many tables to move them from root (id 0) to new root (id 5)
This had works fine. I just too manage some few users and group to be in the root entity (SA user, 1-2 techniciens group, few forms)
Manger un castor, c'est sauver un arbre.
Quand on est mort, on ne sait pas qu'on est mort ; c'est pour les autres que c'est difficile. Quand on est con, c'est pareil !
Offline
Pages: 1