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-01 14:48:16

JF45
Member
Registered: 2023-11-01
Posts: 3

Missing webhook in Notifications recipients list

Hi,

We have been trying to integrate GLPI with an external ITSM tool to create tickets automatically based on the certificate expiry reminders.

We have followed all the steps except step 9 listed in this link : github.com/ericferon/glpi-webhook/wiki/Webhook

For some reason we are unable to find the webhook entry as a contact in the notification recipients list.

Are there any other additional steps to be followed to get webhooks under the recipients list?

Regards,
JF45

Offline

#2 2023-11-01 14:54:56

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

Re: Missing webhook in Notifications recipients list

Do you have any warnings or errors in the GLPI logs (files/_log folder) when you try finding these recipients in the list?


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-01 15:16:10

JF45
Member
Registered: 2023-11-01
Posts: 3

Re: Missing webhook in Notifications recipients list

No, there are no errors in logs while finding these notification recipients

Offline

#4 2023-11-01 17:15:22

JF45
Member
Registered: 2023-11-01
Posts: 3

Re: Missing webhook in Notifications recipients list

We just found out that the webkhook plugin function seems to have a condition that GLPI => 10.0.3 version but we are still in 9.5.12. We are assuming that this could be the reason for this issue. If it is otherwise then do let us know.

Offline

#5 2024-03-13 16:54:24

Topcat
Member
Registered: 2024-03-13
Posts: 2

Re: Missing webhook in Notifications recipients list

I'm testing the webhook plugin on GLPI Community 10.0.7 and I'm having the same problem.

We have followed all the steps except step 9 listed in this link : github.com/ericferon/glpi-webhook/wiki/Webhook

For some reason we are unable to find the webhook entry as a contact in the notification recipients list.

Offline

#6 2024-03-19 01:55:52

Topcat
Member
Registered: 2024-03-13
Posts: 2

Re: Missing webhook in Notifications recipients list

Add the webhook entry to the notification recipient directly to the database. And in this way the webhooks began to work.

INSERT INTO `glpi_notificationtargets` (`id`, `items_id`, `type`, `notifications_id`) VALUES (NULL, '1', '99', '105');

items_id =>          /marketplace/webhook/front/config.form.php?id=1
type =>                /marketplace/webhook/inc/config.class.php const (WEBHOOK_TYPE = 99)
notifications_id => /front/notification.form.php?id=105

Notification templates - Email text body

{
    "id": "##ticket.id## ",
        "name": "##ticket.title##",
    "type":  "##FOREACH LAST 1 tasks####task.category####ENDFOREACHtasks##",
        "state": "##FOREACH LAST 1 tasks####task.status####ENDFOREACHtasks##"
}

Webhook Raw Content

{
  "id": "0000637 ",
  "name": "MANTENIMIENTO PREVENTIVO SG-MG01",
  "type": "LISTA DE CHEQUEO",
  "state": "Done"
}

GLPI 10.0.7

Offline

Board footer

Powered by FluxBB