formcreator icon indicating copy to clipboard operation
formcreator copied to clipboard

Ticket number in the ticket title, as in the default interface

Open alekyxander opened this issue 2 years ago • 12 comments

Ticket number in the ticket title, as in the default interface, image

alekyxander avatar Apr 28 '23 18:04 alekyxander

Hi

This is very likely a duplicate of https://github.com/pluginsGLPI/formcreator/issues/3223.

btry avatar May 02 '23 06:05 btry

O ID que o GLPI mostra não é numero do ticket, e sim um ID interno

alekyxander avatar May 02 '23 11:05 alekyxander

Please show me the URL of the page displayed in the screenshot. I need it to ensure I fully understand.

btry avatar May 02 '23 11:05 btry

Interface padrão< image

interface simplificada< image

Não mostra o numero do ticket na interface simplicada,

alekyxander avatar May 02 '23 12:05 alekyxander

Não mostra o numero do ticket na interface simplicada,

This is normal. If you disable the service catalog of Formcreator then you should be able to access the ticket displayed on the screenshot. You should notice that the ID of the ticket is not displayed. Let me know the result if you try.

When Formcreator shows the assistance request of your screenshot, the plugin delegates to GLPI the task to render the ticket title. The ID is not displayed because the code of GLPI does this way. We are then in the exact same case as #3223, and my answer is still the same.

btry avatar May 02 '23 12:05 btry

O problema é o mesmo relatado, mas a solução não resolve, pois ele não mostra o numero do ticket e sim um codigo interno,

alekyxander avatar May 02 '23 13:05 alekyxander

Exemplo image

ao entrar nesse ticket o numero que mostra é outro image

alekyxander avatar May 02 '23 13:05 alekyxander

In the first screenshot of this comment you are not viewing a ticket. You are viewing an assistance request. This object is rendered depending complex criterias either as a ticket, either as the form answers. The ID you see in the title is not the ticket's ID, this is the assistance request's ID. This is the normal behavior.

btry avatar May 02 '23 14:05 btry

Sei disso, o que estou tentando dizer é que na interface padrão ele mostra o numero do ticket e não o codigo interno, quando mudamos pra interface padrão para usar o catalogo de serviço já não mostra o numero no titulo

alekyxander avatar May 02 '23 14:05 alekyxander

Ok, I think I understand your problem. You are confused because the ID you see in the first screenshot of your bug report does not matches the ID you see in the first screenshot of this comment neither the 2nd screenshot of this same comment.

An assistance request has an internal ID, and a "display ID" which was designed for you (assuming you are an administrator or tech in GLPI), or for debug purpose. If I remember well, the display ID was also needed for business logic in the plugin, but this should b no longer true.

Maybe the display ID could be completely removed, to keep only the ID you called the internal ID. However this cannot be changed in version 2.13. Also it is required to do a deep code review and use case review to ensure that noting breaks when removing the "display ID".

btry avatar May 02 '23 14:05 btry

Olá na versão anterior do GLPI mostrava o numero do ticket neste lugar do formulário image não seria possivel adicionar também nesta versão?

alekyxander avatar May 05 '23 18:05 alekyxander

Hi

This screenshot shows a ticket rendered by GLPI. When Formcreator shows a ticket, it delegates to GLPI the task to render it; then the plugin cannot show the ID of the ticket if GLPI does not.

btry avatar May 05 '23 18:05 btry