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 2019-06-11 11:36:17

Khodabocusnabeel
Member
Registered: 2019-05-15
Posts: 4

Link Knowbaseitem to Ticket via API.

Hello everybody,

I want to know if there is a way to link a knowledge base item to a ticket via API ? Is it possible?

Offline

#2 2019-06-17 21:39:06

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 4,658

Re: Link Knowbaseitem to Ticket via API.

use curl POST  method with url and payload as here :

$knowbaseitem=18;
$ticketid=2852;

$url="/knowbaseitem/".$knowbaseitem."/knowbaseitem_item";
$fields = '{"input": { "knowbaseitems_id":'.$knowbaseitem.',"itemtype":"Ticket","items_id":'.$ticketid.'}}'  ;

Trouver la panne avant de réparer...
*GLPI 9.1.6+fusion9.1+1.1+behaviours1.5.0+reports+fields+appliances+pdf+badges+formcreator2.5.2 PHP7.0 Mariadb10
*GLPI 9.4.3(behaviours2.2.1+fusioninventoty 9.4+1.1+applicatifs2.5.0+fields 1.9.1)hebergé sur serveur mutualisé.

Offline

Board footer

Powered by FluxBB