> 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/service-management-and-contracts/prioritize-request-task-backlog.md). Agents can also search and read this documentation through its [MCP server](https://kb.theloops.io/~gitbook/mcp).

# Prioritize Request Task Backlog

Ranks a bounded queue of open service request tasks by status, priority and SLA exposure. Reads filtered tasks from Request Task Handling, enriches top candidates with SLA commitments and assignments, and optionally parent-request urgency.

| Business area                    | Action type |
| -------------------------------- | ----------- |
| Service Management and Contracts | Read-only   |

## Overview

Dispatchers work from the Request Tasks overview (RequestTasks.client, page RequestTasksOverviewPage using RequestTaskSet). The overview shows status and priority but does not rank by real SLA exposure.

The IFS Cloud integration reads open request tasks, SLA commitments, work assignments and parent service requests (read-only) to rank dispatch backlog.

## How it works

{% stepper %}
{% step %}
Call List Request Task Backlog with the scope. Only `Objstate` in New, Released, WorkStarted, WorkDone are open (use isOpenState on each row).
{% endstep %}

{% step %}
Take the top 25 candidates by (SlaCommitmentStatus OVERDUE first, then ACTIVE, then LatestFinish ascending). Use slaSortRank from the backlog rows (0 = OVERDUE, 1 = ACTIVE, 2 = NOACTIVE).
{% endstep %}

{% step %}
Optionally call Get Request Priority Context for the distinct Srv`ReqId` values (max 25, comma-separated in reqids).
{% endstep %}

{% step %}
Score each task (0-100, cap at 100) using the tools and rules defined in the skill package.
{% endstep %}

{% step %}
Output a ranked table: Rank, `TaskSeq`, Description, CustomerNo, `Objstate`, PriorityId, earliest SLA due, assigned (yes/no), score, reason codes. Then one recommended action for each of the top 5 tasks (assign, release, escalate, check hold reason). State how many tasks were read and how many were enriched, and that no data was changed.
{% endstep %}
{% endstepper %}

## Key capabilities

* Read a bounded, filtered list of open request tasks with status, priority, dates and SLA summary status.
* Enforce a mandatory scope filter and hard caps on rows read.
* Fetch earliest open SLA due date per task for the top candidates.
* Detect unassigned tasks and tasks on hold.
* Add parent-request urgency and priority context.
* Compute a transparent priority score with reason codes.
* Return a ranked table plus one recommended next action per top task.
* Explain exclusions (finished, cancelled, out-of-scope tasks).

## Requirements

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

| Component | Projection          |
| --------- | ------------------- |
| REQMGT    | RequestTaskHandling |
| SLA       | RequestHandling     |

## Version compatibility

| Projection          | Supported IFS Cloud releases |
| ------------------- | ---------------------------- |
| RequestTaskHandling | 25R2, 26R1, 26R2             |
| RequestHandling     | 24R2, 25R1, 25R2, 26R1, 26R2 |

## Known limitations

* Read-only: does not create, update, or delete IFS Cloud data.
* Requires projection-level security. Permission errors halt the run.
