any other advice in getting the due date inserted using API?
API create new ticket with agent assignment
This is on my list to test but unfortunately I have a million other things to do before this. I will get there in time. Looking at the code it should be possible but I’m not 100% certain as we have allowed fields, etc. depending on how the ticket is being created.
Cheers.
didn't work
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.