Fixed problems with created Tickets with pandora. Tiquet: #3690

This commit is contained in:
m-lopez-f 2016-06-03 10:12:06 +02:00
parent ee45bd15d6
commit 55e1bc6583
1 changed files with 19 additions and 7 deletions

View File

@ -5029,7 +5029,7 @@ sub pandora_edit_custom_graph ($$$$$$$$$$$) {
} }
sub pandora_create_integria_ticket ($$$$$$$$$$$) { sub pandora_create_integria_ticket ($$$$$$$$$$$) {
my ($pa_config,$api_path,$api_pass,$integria_user,$user_pass,$ticket_name,$group_id,$ticket_priority,$ticket_email,$ticket_owner,$ticket_description,) = @_; my ($pa_config,$api_path,$api_pass,$integria_user,$user_pass,$ticket_name,$group_id,$ticket_priority,$ticket_email,$ticket_owner,$ticket_description) = @_;
my $data_ticket; my $data_ticket;
my $call_api; my $call_api;
@ -5056,18 +5056,30 @@ sub pandora_create_integria_ticket ($$$$$$$$$$$) {
$ticket_owner = "admin"; $ticket_owner = "admin";
} }
#~ $data_ticket = $ticket_name .
#~ "|;|" . $group_id .
#~ "|;|" . $ticket_priority .
#~ "|;|" . $ticket_description .
#~ "|;|" . #Id inventory
#~ "|;|" . #Id incident type
#~ "|;|" . $ticket_email .
#~ "|;|" . $ticket_owner .
#~ "|;|" . #Father ticket id
#~ "|;|" . #Status
#~ "|;|" . #Extra info
#~ "|;|"; #Resolution
$data_ticket = $ticket_name . $data_ticket = $ticket_name .
"|;|" . $group_id . "|;|" . $group_id .
"|;|" . $ticket_priority . "|;|" . $ticket_priority .
"|;|" . $ticket_description . "|;|" . $ticket_description .
"|;|" . #Id inventory "|;|" .
"|;|" . #Id incident type "|;|" .
"|;|" . $ticket_email . "|;|" . $ticket_email .
"|;|" . $ticket_owner . "|;|" . $ticket_owner .
"|;|" . #Father ticket id "|;|" .
"|;|" . #Status "|;|" . '1' .
"|;|" . #Extra info "|;|" .
"|;|"; #Resolution "|;|";
$call_api = $api_path . '?' . $call_api = $api_path . '?' .
'user=' . $integria_user . '&' . 'user=' . $integria_user . '&' .