> For the complete documentation index, see [llms.txt](https://kb.theloops.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb.theloops.io/agentstudio/skills-library/field-service-and-workforce-scheduling/prioritize-unallocated-service-tasks.md). Agents can also search and read this documentation through its [MCP server](https://kb.theloops.io/~gitbook/mcp).

# Prioritize Unallocated Service Tasks

Reads one scheduling dataset's unallocated work from the Dispatch Console, enriches SLA and appointment evidence, and supports ranking and next-step guidance. Read-only.

| Business area                          | Action type |
| -------------------------------------- | ----------- |
| Field Service and Workforce Scheduling | Read-only   |

## Overview

The Dispatch Console in IFS Cloud shows an "Unallocated" list per scheduling dataset (list SvcschUnAllocTaskList on DispatchConsoleUnallocTaskQuery, view DISPATCH\_CONSOLE\_UNALLOC\_TASKS). Each row is one task demand line or visit that the scheduling engine (PSO or manual) has not allocated to a resource.

IFS Cloud reads Dispatch Console unallocated tasks and schedule assistance data for prioritization.

## How it works

{% stepper %}
{% step %}
Resolve Dispatch Dataset unless the user gave a DatasetId. Confirm DatasetId and SchedulingMethod.
{% endstep %}

{% step %}
List Unallocated Tasks with horizon and optional site / maint org / resource group filters.
{% endstep %}

{% step %}
For the top 30 candidates by SLA end, call Get Task Appointment Flags.
{% endstep %}

{% step %}
For candidates with HasDependency = TRUE, call Get Task Dependency Constraints.
{% endstep %}

{% step %}
Rank and answer.
{% endstep %}
{% endstepper %}

## Key capabilities

* Resolve the dispatcher's scheduling dataset from their Dispatch Console settings (SvcschDispatchConsoleResourcesSet).
* Read all unallocated task lines for one dataset with SLA, time-window, priority and dependency evidence.
* Filter to a horizon (SLA end or latest start within N hours) and to site, maintenance organization or resource group.
* Detect already-violated SLAs (SlaEndDate in the past or SlaViolatedErr not empty).
* Detect appointment-driven work (AppointmentRequired without HasAppointment) and fixed starts.
* Detect blockers: ExcludeFromScheduling, ordered predecessors not done, PSO allocation pending (HasPsoAllocationDb).
* Produce a deterministic, explainable ranking with slack (time to SLA end minus duration).
* Recommend the next permissible step per task and point to the follow-up skill.

## Requirements

The following IFS Cloud components and projections must be available, with permission sets that grant access to each projection.

| Component                                | Projection                               |
| ---------------------------------------- | ---------------------------------------- |
| SVCSCH (SCHEDULING AND DISPATCH CONSOLE) | SvcschDispatchConsoleHandling            |
| REQMGT                                   | SvcschActivityScheduleAssistanceHandling |

## Version compatibility

| Projection                               | Supported IFS Cloud releases |
| ---------------------------------------- | ---------------------------- |
| SvcschDispatchConsoleHandling            | 24R2, 25R1, 25R2, 26R1, 26R2 |
| SvcschActivityScheduleAssistanceHandling | 25R2, 26R1, 26R2             |

## Known limitations

* Requires projection-level security. Permission errors halt the run.
