Subject: | Can't add Content when creating ticket |
Date: | Mon, 30 Apr 2018 15:57:11 +0200 |
To: | bug-RT-Extension-REST2 [...] rt.cpan.org |
From: | Tanguy Charles <tcharles [...] centreon.com> |
Hello there,
we would like to link Centreon (monitoring software) to Request Tracker in
order to create ticket based on the monitoring.
Sadly, when creating the ticket with the following json :
$argument = array(
'Subject' => $ticket_arguments['Subject'],
'Content' => $ticket_arguments['Body'],
'Owner' => $ticket_arguments['Owner'],
'Queue' => $ticket_arguments['Queue'],
);
it looks like the Content parameter isn't working as intended. In the
previous api there was a Text field so I tried it without success
Someone got the same issue there :
https://forum.bestpractical.com/t/create-ticket-via-rest-api-with-a-content/32586
It looks like there is an issue with the content field and updating a
ticket so maybe it is related.
https://github.com/bestpractical/rt-extension-rest2/commit/27ed014a0e882f59e448f6b7163af6e12b7fc19e
I'll work around that by using the rest api 1.0 when creating a ticket and
using version 2.0 to get data from Request Tracker since it gives me usable
json data.
Thanks for your time, and this API.
Regards,
--
*Tanguy CHARLESConsultant*
Tel +33 (0) 1 49 69 97 12
Direct +33 (0) 1 82 21 80 45
tcharles@centreon.com
*The Power Of Knowing*
Website <https://www.centreon.com/> | Blog <https://centreon.com/blog/> |
Github <https://github.com/centreon/> | Twitter
<https://twitter.com/Centreon>