You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2025-02-25 17:08:51

lordbat
Member
From: Spain
Registered: 2016-02-12
Posts: 201

[Issue] ITIL category origin created on transfers ticket to new entity

Situation:

I have the same tech profile assigned in multiples entities.  This profile can transfer but in ITIL Categories doesn't have any rights (CRUD).
By logic if this technician transfer a ticket to another entity, but if the current entity have an ITIL Category when the entity destination doesn't exists, the ITIL category is created by the tech user who trasfered the ticket.

This is not suppose to happened but it does.

Maybe this could be a bug, or at least if the ITIL Category doesnt exist in the entity destination "clear" the origin itil category  from the ticket trasnfered.

Im using v10.0.17.


Regards!


You can mark this thread as [Solved] in the subject of your thread. (This is only available edit of the first post.) It is good for users who help others to quickly see which post is still open.
############################################################

Offline

#2 2025-02-26 12:50:18

lordbat
Member
From: Spain
Registered: 2016-02-12
Posts: 201

Re: [Issue] ITIL category origin created on transfers ticket to new entity

Checking the glpi code i found the process when a ticket is tranfered and i found there is a piece of code when the itil category in the destiny entitiy if doesnt exist is imported to the new entity.

Im thinking to add another option on transfer template if the user wants or not "Clone/Preserve" or "Remove ITIL Category" on the transfer.

Captura-de-pantalla-2025-02-26-113630.png

Now... i see the values of the templates are stored in one of the db tables. So this feature will need to add another column in the core table. So.... if i need to create a plugin, how i could be able to "catch" the transfer action to check the new value (in my future plugin table) to nake this change without modify the core process?

maybe @cconard96 could you suggest me.

Thanks!!

Last edited by lordbat (2025-02-26 12:51:32)


You can mark this thread as [Solved] in the subject of your thread. (This is only available edit of the first post.) It is good for users who help others to quickly see which post is still open.
############################################################

Offline

Board footer

Powered by FluxBB