## Dispatch

The **Service** module (main menu → **Service**) is the board where the service manager plans visits: assigns jobs to technicians, teams and contractors, sets times, sees workload and conflicts, and uses the map to arrange the order of visits and the day's routes.

{% callout title="Requirements" %}
The module is part of the Service add-on (see [Service](/service)). Opening the board requires the **Access to the service board** permission (*Service* group). Moving jobs requires **Edit jobs**, and changing the person or team requires **Assign technicians and subcontractors to jobs** (*Service work* group).
{% /callout %}

The board shows jobs from issues you can see, and only from issue types that have service work enabled. The job itself (schedule, address, description) is described on the [Service jobs](/service/jobs) page.

## Board layout

### Scales

The switch at the top selects the view:

| Scale | What it shows |
| --- | --- |
| **Day** | An hour axis for a single day. Job cards sit on the axis by time; light areas are the technician's working hours. A red vertical line marks the current time |
| **Week** | A column for each day of the week, with job cards in the cells. Clicking a day header switches to the day view |
| **Month** | A cell for each day with the number of jobs and the workload percentage, colored by workload. Hovering shows the day's jobs; clicking opens the day view |
| **Map** | One day's visits on a map, technicians' routes and their optimization (see [Map and routes](#map-and-routes)) |

The **Previous** / **Next** arrows move the view, and **Today** returns to the current day. "Today" is calculated in the account's time zone.

Month view legend: **Free**, `< 50%`, `50–80%`, `80–100%`, **> 100% or outside hours**, **Absence** (hatching), **Conflict** (red outline).

### Rows

Each row is one assignee. Order: teams first, then technicians, then contractors.

| Row | Who appears |
| --- | --- |
| **Team** | Active service teams with at least one member in the selected organizations, plus any team that has a job in the viewed range. Team members are listed under the name. See [Service teams](/service/teams) |
| **Technician** | Users with the **Access to own jobs only** permission in the selected organizations, plus any technician with an assigned job in the range |
| **Contractor** | Contractor companies that have jobs in the viewed range |

Next to a technician's or team's name you see their working hours (or **No working hours**) and the day's workload, e.g. **6 h / 8 h** — scheduled hours against available hours. When more is scheduled than is available, the figure turns red. A day of absence is hatched and labeled **Absent**; a day without working hours shows **Day off**. Working hours and absences are set in the user's calendar (see [Working hours & absences](/service/calendar)).

A job that has both a technician and a contractor appears in both rows.

### Job card

The card shows the start time, issue number, work type or title, and city. Hovering shows details: customer, schedule, status and any conflicts. Clicking opens the job.

- A padlock marks an **Agreed time** with the customer.
- A red outline and an exclamation mark indicate a conflict.
- Finished jobs (**Done**, **Failed**) and jobs of closed issues (**Issue closed**) are grayed out and cannot be dragged.
- Team visits shown in a member's row are also grayed out — move them in the team's row.

A job without an end time takes up its estimated duration on the board, or 60 minutes if none was given.

### Filters

| Filter | Effect |
| --- | --- |
| **Organization** | Narrows technicians, teams and jobs to one organization. Default: **All organizations** (your organizations) |
| **Teams** | Shows only the selected teams and their visits. The filter appears when the board has teams |
| **Technicians** | Shows only the selected technicians — together with visits of teams whose crew includes the technician |
| **Skills** | Shows technicians who have **all** selected skills. A team matches when its members together have all the selected skills |

View and filter settings are kept in the page address — you can send the link to a colleague or bookmark it.

### Unassigned

The panel on the left, **Unassigned** tab, collects jobs with status **Planned** or **Assigned** that have no assignee or no date. Each one shows:

- **No date** — the job has no date,
- **Scheduled: …** — the job has a date but nobody assigned,
- **Overdue: …** (in red) — the date has already passed.

The list shows up to 200 jobs (counter **200+**). Jobs of closed issues do not appear on it. When everything is assigned, the panel shows **Everything is assigned**.

The second tab, **Maintenance**, shows asset maintenance due within 30 days, with a **Create issue** button (see [Assets](/service/assets)).

## Drag-and-drop planning

Drag a job from the **Unassigned** panel, or from elsewhere on the board, onto an assignee's row:

- **Day view** — dropping sets the start time in 15-minute steps (a time hint is shown while dragging). You can drag the right edge of a card to change the end time.
- **Week view** — dropping on a day changes the date and keeps the time. A job without a date gets the start of the technician's working hours on that day, or 9:00 if the technician has no hours.
- **Month view** — for reviewing workload, not for dragging.

The job's duration is preserved. Dropping on a different row changes the assignee: on a team row the job is assigned to the team (and the technician is removed); on a technician row — to the technician.

- Without the **Assign technicians and subcontractors to jobs** permission, a job can only be moved within its own row (change the schedule without changing the person).
- When moving a job whose time is agreed with the customer, you are asked *"This visit's time is agreed with the customer. Move anyway?"*.
- The card is locked while saving. If someone changed the job in the meantime, you will see *"Someone changed this job in the meantime — the board was refreshed, please try again"*.

A change on the board is a regular job edit — it is recorded in the job history just like an edit in the form.

## Conflicts

The board checks the plan and warns about conflicts. A conflict **does not block** saving — it is a signal for the dispatcher. A card with a conflict has a red outline, and a button with the number of conflicts (e.g. **3 conflicts**) appears above the board. Clicking it opens the **Conflicts in view** list: type, day, assignee and the jobs involved. **Show day** switches to that day's view and highlights the jobs.

| Message | When it appears |
| --- | --- |
| **Overlaps another job** | Two jobs of the same technician (or two visits of the same team) at the same time. Back-to-back, e.g. 10:00–11:00 and 11:00–12:00, is allowed |
| **Outside working hours** | The job does not fit entirely within one working-hours window. Also applies to a technician with no working hours set for that day |
| **Technician absent** | The job falls on a day the technician is absent (for a team — when all members are absent) |
| **Not enough travel time** | The gap between consecutive visits on the same day is shorter than the travel time to the next visit. The first visit of the day is not checked |
| **Team member has another job at this time** | A team member has their own job, or another team's visit, overlapping the team visit |
| **Team member absent** | Someone in the team's crew is absent on the day of the visit |

Working hours and absences are not checked for contractors.

## Map and routes

The **Map** scale shows one day's visits. The list on the left contains technicians and teams with their number of visits (people without visits are in the **No visits** group).

- Click a technician or team to see their route and the planning panel. **All technicians** returns to the list.
- **Ctrl/Cmd + click**, or the **+** button next to a name, selects several technicians at once (up to 8). For each you see a summary: number of visits, driving time and distance, number of warnings and overlapping visits, and a **Details / Optimize** button.
- A team's route uses the color set on the team.
- Map legend: **Unassigned** (gray pins), **Start / end of day**, **No road route** (dashed line). The **Show unassigned** checkbox toggles pins of unassigned jobs — jobs without a date and those scheduled on the viewed day.

The **Technicians** filter in the toolbar also narrows the map.

### Assigning from the map

Clicking a visit pin opens a popup with details. With the **Assign technicians and subcontractors to jobs** permission you can pick a technician there: **Assign to:** for an unassigned job, or **Reassign to:** for an assigned one. After the change you see *"Reassigned to … Optimize the routes."* — both technicians' routes are recalculated.

### Planning the day's route

After you select one technician (or team), the panel shows the current day plan: visits in order with times, travel time and distance, total driving time (**Driving: …**) and warnings.

| Button | Effect |
| --- | --- |
| **Optimize** | Orders the visits to shorten driving and recalculates the times. The summary shows the difference: **Driving: before … → after …** |
| **Recalculate times** | Recalculates times for the current order |
| **Move up** / **Move down** | Manually change the order of visits (times recalculate immediately) |
| **Save plan (N changes)** | Saves the new times of the visits that changed. Requires the **Edit jobs** permission |

Plan rules:

- Visits with a time agreed with the customer and visits **In progress** stay at their times — optimization arranges the rest around them.
- Working hours mean departure from the start point: the day begins at the start of working hours, and a visit ending after they end gets a warning.
- Saving the plan changes only the times, not the assignment.
- The route includes visits of open issues with status **Planned**, **Assigned** or **In progress**. A single day can have at most 28 visits.
- Contractors have no routes.

Plan warnings:

| Message | Meaning |
| --- | --- |
| **Cannot make the agreed time** | The technician won't reach a visit with an agreed time (or a visit in progress) |
| **Not enough time to get there** | The technician won't reach the visit by its saved time |
| **Outside working hours** | The visit ends after working hours |
| **Start/end point has no coordinates** | The chosen start or end point has no location on the map |

Below the plan you choose the **Start** and **End** of the day for this technician (described below, in [My route](#my-route)). **Save for this day** sets the points only for the viewed day; **Restore defaults** returns to the technician's default settings. A team route has no such choice — it starts and ends at the team lead's points.

### Visit location

A visit appears on the map when its address has coordinates: the address chosen on the job, or — if none was chosen — the customer's main address. Coordinates are marked on the map at the customer's address. Visits without coordinates are listed separately (**Visits without location: N**); a person with access to customers sees a **Fill in location** link next to them.

{% callout type="warning" title="An address without coordinates does not fall back to the main address" %}
If the job has a specific address selected and that address has no coordinates, the visit is treated as having no location — even if the customer's main address has coordinates. It is a different place, so the system does not substitute it.
{% /callout %}

### Travel times

Travel times and distances are calculated along roads, on Reklamator's server. When road calculation is temporarily unavailable, the panel shows **Estimated times (straight line)** and the route is drawn as a dashed line.

The travel time to each visit (from the start point or from the previous visit) is saved on the job in the **Travel** field:

- when the route plan is saved,
- automatically in the background after a job is added, deleted or cancelled, and after a change of technician, team, schedule or address — for the day before and after the change. The board refreshes shortly after saving, once the recalculation finishes.

The background recalculation never overwrites the value with an estimate. The **Travel** value is used by the **Not enough travel time** conflict; it is also available in templates and as an issue service field.

## My route

A technician sees their day plan in **your profile → My route**. The button is visible to users with the **Access to own jobs only** permission. The page also works on a phone, in the browser.

- Arrows and the date field switch the day (today by default).
- The map shows the day's route, and the list shows visits in order with times, **Travel** time and warnings. Both the technician's own visits and visits of the team they belong to are shown.
- **Whole route in Google Maps** opens navigation with the entire route. A longer route is split into legs (**Leg 1 in Google Maps**, **Leg 2…**). The **Navigate** button next to a visit leads to that single visit.
- Visits without coordinates are in the **Without location** section — with a **Navigate** button using the address.

The technician does not change the order or times of visits — the dispatcher does. The technician does set where they leave from and return to.

### Start and end of day

| Option | Meaning |
| --- | --- |
| Organization | One of the technician's organizations — a point with coordinates saved on the organization. An organization without coordinates is marked *(no coordinates)* |
| A place from **My places** | The technician's own place, e.g. home |
| **No point (first / last visit)** | The route starts at the first visit or ends at the last one, without driving from base / returning |

- **Default day start and end** (at the bottom of the page) applies every day.
- The selection above the visit list with the **Save for this day** button changes the points only for the chosen day. **Restore defaults** removes the day's setting.

Start and end are set separately — e.g. you can start at the office and finish at home.

### My places

In the **My places** section the technician adds their own points: **Name (e.g. Home)**, address (**Street**, **Number**, **Postal code**, **City**) and a point on the map (click or drag the pin). The name and map point are required. **Add place** saves the place.

On the map, the dispatcher sees the location of the technician's home as a start or end point, but without the address. The full list of a technician's places with addresses (**System → Users → [person] → Availability**) can be seen and edited only by people with the **Edit staff availability** permission.

{% callout title="Permissions for My route" %}
Viewing the route requires only **Access to own jobs only**. To set the day's start and end and their own places, the technician also needs **Edit own availability** (*Staff calendar* group).
{% /callout %}

## Messages

| Message | What to do |
| --- | --- |
| *A visit with an agreed time cannot be moved* | The plan tried to change the time of a visit agreed with the customer. Change the schedule on the job or leave the visit in place |
| *The day's visits changed — recalculate the route* | Someone added, closed or moved a visit on that day in the meantime. Recalculate the route |
| *A job changed in the meantime — recalculate the route* | One of the jobs was changed after the plan was calculated |
| *Too many visits in one day (max 28)* | Split the visits between days or technicians |
| *No visit of the visible technicians on this day has coordinates…* | Fill in the location of customer addresses |
| *Could not load the road route — showing a straight line.* | A temporary problem calculating the route — try again later |
| *At most 8 technicians at once* | You can select up to 8 technicians on the map |

## FAQ

### Does a conflict block saving the job?
No. Conflicts only warn — the dispatcher decides whether to keep them.

### Why isn't a technician on the board?
The board shows users with the **Access to own jobs only** permission in the selected organizations. Check their permission group, organizations, and the **Organization**, **Technicians** and **Skills** filters.

### Why does every visit of a technician show "Outside working hours"?
The technician has no working hours set for that weekday. Add them in **System → Users → [person] → Availability** (see [Working hours & absences](/service/calendar)).

### Does optimization assign technicians automatically?
No. Optimization arranges the order and times of visits for one technician or team. The assignment is changed by dragging on the board, in the pin popup on the map, or in the job form.

### Does the route take traffic into account?
No. Travel times are calculated on the road network, without live traffic.

### Why isn't a visit shown on the map?
The visit's address has no coordinates. Fill in the location of the customer's address (the **Fill in location** link).
