cherrie

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.

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
        Write a Reply...