didn't work
API create new ticket with agent assignment
Does the script work otherwise?
(if you do not try to set the duedate)
Hi. Bumping up to see if there has been any progress on this issue.
Go to the line below, add 'duedate',
to this line, save the changes, and retest.
Cheers.
added duedate to the line and still doesn't work
any update to adding due date?
Copy this line:
… and paste it in the api
case below it. You may also need the change I mentioned above in addition.
Cheers.
Can you please clarify? Where in the api.tickets.php should I add the line?
I said above, "Copy this line [insert link with specific line to copy] and paste it in the api
case below it." This means copy the line in the referenced link and paste it in the api
switch case (which is below the line you are copying).
Cheers.
Still not working. Ticket is created but date not working. api case section has:
case 'api':
$fields['source'] = array('type'=>'string', 'required'=>1, 'error'=>__('Indicate ticket source'));
$fields['duedate'] = array('type'=>'date', 'required'=>0, 'error'=>__('Invalid date format - must be MM/DD/YY'));
break;
and tried both formats:
'duedate' => '03/08/2024',
'03/08/24',`
'duedate' =>
bumping this up since I've not been able to resolve. Funny thing though that the system does process the date because when I insert a past date (e.g., 03/08/24), I get an error saying that the date has passed.
- Best Answerset by KevinTheJedi
duedate
issue addressed here:
still cannot replicate the staffId
issue.
Now that I've installed 1.18.2, I'm now able to successfully add the due date using the API. It was tricky getting the right format. Essentially, I changed the form date format from mm/dd/YYYY to Y-m-d.