All jobs

Which Service Desk Requests Are About to Breach Their SLA? An IT Support Provider's Twice-Daily List From Jira Service Management

An IT support provider's agent searches Jira Service Management twice a day and lists, by client, every open request that has breached its SLA or is about to.

Run this on RushOpens the console with this prompt ready to send. Connect Atlassian there first.

What the agent does

This is for a managed IT services provider: a team of technicians that runs the help desk for dozens of small businesses, from dental practices to accounting offices, through one Jira Service Management project. Each client is an organization in the service desk, and each contract promises a first response and a resolution within set hours, which Jira tracks as the SLAs Time to first response and Time to resolution. The service desk lead wants a list at 7 a.m. and 1 p.m. of what is about to go red, by client, so a technician picks it up before the client calls.

The lead connects Atlassian once with POST /me/connections {"type": "mcp", "name": "atlassian", "url": "https://mcp.atlassian.com/v2/mcp", "auth": {"mode": "oauth"}} and opens the authorize_url. Atlassian's docs say the Rovo MCP server signs in with OAuth 2.1, respects the person's existing Jira permissions, and groups its tools into permission groups an organization admin can turn off. This job needs read_jira, search_jira and read_jsm. The docs also say the server lists only a few primary tools at first; the rest are found with discover and run through executeRead, executeWrite or executeDestructive according to their risk.

On a run the agent calls atlassianUserInfo to record whose view it reads and getAccessibleAtlassianResources for the site's cloudId. It then runs three JQL searches with searchJiraIssuesUsingJql, using Jira Service Management's SLA functions: open requests whose Time to resolution has breached(), open requests with less than four hours remaining() on Time to resolution, and requests whose Time to first response is running() with less than one hour remaining. For the requests it finds, it uses discover to locate getJsmRequest and calls it through executeRead for the customer-facing status and the reporter's organization, and calls listJiraIssueComments for the newest public comment.

It writes sla-watch.md grouped by client organization, worst first: Breached, then Resolution due within 4 hours, then First response due within 1 hour. Each line has the request key, its summary, the assignee or Unassigned, the status, the time left as Jira reports it, and who commented last and when, since a request waiting on the client is a different call from one waiting on the team. It changes nothing in Jira. The prompt forbids executeWrite and executeDestructive outright, which covers every transition, comment and assignment the server offers.

Start it with one API call

POST https://api.phoenix.so/o/{org}/sessions with this body:

{
  "agent": "claude",
  "input": "List service desk requests that have breached or are close to breaching their SLA. Use the atlassian connection. Call atlassianUserInfo and getAccessibleAtlassianResources and record the account and cloudId. With searchJiraIssuesUsingJql run: (1) project = HELP AND resolution = EMPTY AND \"Time to resolution\" = breached(); (2) project = HELP AND resolution = EMPTY AND \"Time to resolution\" < remaining(\"4h\"); (3) project = HELP AND \"Time to first response\" = running() AND \"Time to first response\" < remaining(\"1h\"). For each request found, use discover to find getJsmRequest and call it with executeRead for its status and organization, and call listJiraIssueComments for the newest public comment (author, date). Write sla-watch.md grouped by organization, organizations with breaches first, with sections Breached, Resolution due within 4h, First response due within 1h; each line: key, summary, assignee or Unassigned, status, time left, last comment author and date. If a search fails because a permission group is unavailable, stop and report Atlassian's message. Never call executeWrite or executeDestructive, and never transition, comment on, assign or edit a request.",
  "connections": [
    "atlassian"
  ]
}
  1. Get an API key. In the console, open Settings, then API keys, and create a key for your org. Send it in the Authorization header as a Bearer token.
  2. Send the request. POST the body in request.json to https://api.phoenix.so/o/{org}/sessions. The run starts in its own cloud sandbox.
  3. Read what came back. Follow the run on its live stream or wait for the run.completed webhook, then read the result and its trajectory.

What comes back

The session returns sla-watch.md as an artifact and the same list in result. The lead reads it at the start of each half-day and hands each Unassigned line to a technician in Jira, where the SLA clock lives. Because the list is grouped by client, a client with three requests near breach is visible as one problem: often an outage at that office that deserves one technician and one phone call rather than three replies.

What the lead checks: requests in a waiting-for-customer status, where the service desk's SLA configuration may pause the clock, so they appear only if the clock is still running; requests that breached overnight and were already discussed with the client; and the time-left figure itself, which is Jira's own and depends on the calendar each SLA uses. The agent reports what Jira says and calculates no SLA of its own.

Run it on every stand-up, morning and afternoon

In the console, a Project automation with a schedule trigger at 0 7,13 * * 1-5 in the provider's timezone runs a saved agent whose connections name atlassian, so the list is ready at the morning and afternoon stand-ups. A provider with weekend cover adds a second trigger for Saturday and Sunday with a smaller project filter.

Each run is its own session with its own record. At the end of the month the lead can open the runs and see which clients appeared in the Breached section most often, which is the start of a conversation about whether their contract hours still fit how much they call.

The use case this job follows, with its automation and trigger: Produce a report or file, no repo.

Why run it on Rush?

The check needs to read every client's requests as one technician who can see them, and that sign-in should not be an API token in a shared script. On Rush it stays in the lead's Atlassian connection, Atlassian's own permissions still apply to every call, and the admin can see and limit which permission groups the server exposes.

Each run has its own computer and a record of every Jira call and what its model calls cost. A Jira filter can list breached requests, but it cannot read the last comment on each one and say whether the team or the client is holding it up, and it cannot group by client with the reason in one page the lead reads in two minutes.

Frequently asked questions

Our SLAs have different names. Does the JQL still work?

Replace the SLA names in the prompt with the ones your service project uses, exactly as Jira shows them. The functions breached(), remaining() and running() work with any SLA field the project defines.

Why does the agent use discover before reading a request?

Atlassian's docs say the Rovo MCP server lists only a handful of primary tools up front and finds the rest at runtime with discover. getJsmRequest is one of the deferred tools, so the agent asks for it by description and calls it through executeRead.

Could the agent assign the requests itself?

The tools exist, but the prompt forbids executeWrite and executeDestructive, and an admin can also turn off the write permission groups for the whole organization. Who takes which request depends on who is on site where, which the lead knows and the service desk does not.

Can each client see this report?

Not from this setup. The report is an internal artifact of the provider's own run. A provider that wants to send each client a monthly summary would run a separate, client-by-client prompt and review each draft before sending it.

More Atlassian jobs

More jobs like this: Produce a report or file, no repo

Keep reading