we're running happily the api calls for ticketcreate.
now we also would like to close the ticket via an api call.
I do get the impression that we've to do this via the webservices and then the TicketUpdate.
We're doing a ticketupdate with state closed and the ticketnumumber included, but keep getting a message back that the ticketid or ticketnumber is missing.
Please see snapshot below from the debugger of the webservice
I can't see what's wrong (as the ticketnumbver is included).
Any help is appreciated:
snapshot:
Received data by provider from remote system (2013-08-30 21:35:36, debug)
root@localhost
otrsXXXXXXXX
closed
2013083010269
Detected operation 'TicketUpdate' (2013-08-30 21:35:36, debug)
Incoming data before mapping (2013-08-30 21:35:36, debug)
$VAR1 = {
'Article' => '',
'Password' => 'otrsXXXXXXXXXX',
'Ticket' => {
'State' => 'closed',
'TicketNumber' => '2013083010269'
},
'UserLogin' => 'root@localhost'
};
TicketUpdate.MissingParameter (2013-08-30 21:35:36, error)
TicketUpdate: TicketID or TicketNumber is required!
Outgoing data before mapping (2013-08-30 21:35:36, debug)
$VAR1 = {
'Error' => {
'ErrorCode' => 'TicketUpdate.MissingParameter',
'ErrorMessage' => 'TicketUpdate: TicketID or TicketNumber is required!'
}
};
Returning provider data to remote system (HTTP Code: 200) (2013-08-30 21:35:36, debug)
TicketUpdate.MissingParameter