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 2023-11-21 16:44:40

Matteo Calorio
Member
Registered: 2013-09-03
Posts: 13

Is it possible to call an external REST API on ticket changes?

Is it possible to call an external REST API when a task is created on a ticket, when it is edited or when it is deleted?

Also calling curl like this would fit:

$ curl -s -X POST -d "glpiactionnumber=10000&glpiticketnumber=1500&..." https://...| json_pp

Matteo

Offline

#2 2023-11-21 16:50:24

cconard96
Moderator
Registered: 2018-07-31
Posts: 2,809
Website

Re: Is it possible to call an external REST API on ticket changes?

Currently? No.
In GLPI 10.1 there will be an outgoing webhooks feature though which lets you select an event like "Ticket Task - Add" and send a customizable payload (with access to the details of the new task and the ticket) to a URL. The URL itself can even be dynamic, using properties of the task/ticket.


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

#3 2023-11-24 11:14:28

Matteo Calorio
Member
Registered: 2013-09-03
Posts: 13

Re: Is it possible to call an external REST API on ticket changes?

Excellent, very interesting, thanks!

Offline

#4 2024-04-04 16:11:30

Matteo Calorio
Member
Registered: 2013-09-03
Posts: 13

Re: Is it possible to call an external REST API on ticket changes?

Hi,

is there a release date for GLPI 10.1?

Thank you,
   Matteo

Offline

#5 2024-04-04 17:28:58

cconard96
Moderator
Registered: 2018-07-31
Posts: 2,809
Website

Re: Is it possible to call an external REST API on ticket changes?

It will be called GLPI 11 now, but no there isn't a release date yet. We are still working on some major features for that version.
You can get an idea of what is being worked on for this version in the related GitHub milestone.
https://github.com/glpi-project/glpi/milestone/49


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

#6 2024-04-27 08:54:48

InvisibleJim
Member
Registered: 2023-11-26
Posts: 14

Re: Is it possible to call an external REST API on ticket changes?

Matteo Calorio wrote:

Is it possible to call an external REST API when a task is created on a ticket, when it is edited or when it is deleted?

Also calling curl like this would fit:

$ curl -s -X POST -d "glpiactionnumber=10000&glpiticketnumber=1500&..." https://...| json_pp

Matteo

I haven't used it myself yet but I believe there is a webhook plugin in the GLPI marketplace? Perhaps that will work for you until GLPI 11 is released

Offline

Board footer

Powered by FluxBB