I have created a job and then a job allocation but can’t get it to add to the dispatch board via the API.
I believe the issue is related to the allocation window. I have created custom allocation windows for specific hours of the day: i.e. 12:00 to 13:30. But when I assign the allocation window to a job via the API or manually on the UI it does not appear in the dispatch board. (see screenshot below)
When I allocate a specific time manually via the UI (i.e. 12:00) the job does appear on the dispatch board.
Therefore, I need to figure out how to allocate the time via the API so it appears on the dispatch board. But I can’t allocate specific hours via the API (only have the allocation windows for Urgent, Early Morning, During Business Hours, 1200 to 1330, etc. - none of them add directly to the dispatch board). Only the 7:00 AM, 7:30 AM, etc. add to the dispatch board but I can’t access them via the API
Super urgent so any solutions would be appreciated please
Any update on this. I am trying to allocate a job fro a staff using the jobactivity endpoint. But job is showing in the queue only instrad of the dispatch board.
For a specific appointment time, use a scheduled Job Activity rather than a Job Allocation, because Job Activity includes staff_uuid, start_date, end_date and activity_was_scheduled, while Job Allocation is based on an allocation_date and an allocation_window_uuid timeframe.
The key fields to check on /jobactivity.json are:
job_uuid
staff_uuid
start_date
end_date
activity_was_scheduled
activity_was_scheduled should be set for a scheduled activity, and it can’t be true if activity_was_recorded is also true.
If the job is still only showing in a queue, check the job hasn’t been left queued, as the Job API includes queue_uuid as “The UUID of the queue this job belongs to”, and queues are intended for jobs on hold until they can progress.
Also check the job status, because the Job API says the status field controls where the job appears in the Dispatch Board.