6 days later

Does the script work otherwise?
(if you do not try to set the duedate)

    2 months later

    Hi. Bumping up to see if there has been any progress on this issue.

      added duedate to the line and still doesn't work

      3 months later

      Can you please clarify? Where in the api.tickets.php should I add the line?

        cherrie

        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',
        'duedate' =>
        '03/08/24',`

        5 months later

        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.

        22 days later
        8 months later

        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.

        Write a Reply...