# How Do I Find Outdated Procedures in Confluence? A Hotel Management Company's Monthly List of Standard Operating Procedures Due for Review

A hotel management company runs an agent monthly that finds Confluence procedures nobody updated in a year and lists them by reviewer, with open comments.

[Run this on Rush](https://cloud.getrush.ai/run/find-outdated-procedures-in-confluence/atlassian/). Opens the console with this prompt ready to send. Connect Atlassian there first.

## What the agent does

This is for a company that manages a dozen hotels for their owners and keeps its standard operating procedures in Confluence: one space for front office, one for housekeeping, one for food and beverage, with a page per procedure, from late check-out approvals to the linen par count. New staff learn from those pages, and an auditor from an owner group sometimes asks to see them. Pages drift: the property management system changes, a form is replaced, a manager who wrote half the housekeeping space leaves. The director of operations wants a monthly list of procedures that nobody has touched in a year, sorted by who should review each one.

The director 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 supported-tools page puts the Confluence tools in permission groups: `read_confluence` for reading pages, versions and comments, and `search_confluence` for CQL search. This job needs only those two. The agent sees what the director can see in Confluence.

On a run the agent calls `searchConfluence` with CQL for pages in the procedure spaces the request names whose last modification is more than 52 weeks ago, and pages labelled `sop` anywhere. For each page it calls `getConfluenceContent` for the title, the space, the last editor and the date, and the body, which it scans for the names of systems and forms the request says were retired. It calls `listConfluenceComments` to find unresolved comments, because a comment that says "this changed in March" is the strongest sign a page is wrong. Where the last editor has left the company, it uses `listConfluenceContentVersions` to find the most recent editor who is still on the list of reviewers.

It writes a list grouped by reviewer: each page with its space, how many months since it was edited, any retired system it mentions, and the newest open comment. Pages that mention a retired system or have an open comment come first, since those are most likely wrong rather than just old. It writes nothing in Confluence: the request forbids every tool in the `write_confluence` group, including comments, labels and archiving.

## Start it with one API call

`POST https://api.phoenix.so/o/{org}/sessions`

```json
{
  "agent": "claude",
  "input": "Find Confluence procedures due for review. Use the atlassian connection. Spaces: FO (Front Office), HK (Housekeeping), FB (Food and Beverage). Call searchConfluence with CQL: type = page AND (space in (FO, HK, FB) OR label = \"sop\") AND lastmodified < now(\"-52w\"). For each page call getConfluenceContent (title, space, last editor, last modified, body) and listConfluenceComments for unresolved comments. Retired names to look for in the body: \"PMS v2\", \"Form HK-7\", \"pager\", \"fax\". Reviewers by space: FO Dana Kim, HK Ruth Alvarez, FB Marco Bianchi. If the last editor is not a reviewer, call listConfluenceContentVersions and use the most recent editor who is. Write review-list.md grouped by reviewer: for each page, title and link, space, months since edited, retired names found, newest unresolved comment (author, date, first 200 characters). Sort pages with a retired name or open comment first. If a search or read fails for lack of permission, stop and report Atlassian's message. Read only: never call createConfluenceContent, updateConfluenceContent, createConfluenceComment, addLabelsToConfluenceContent, archiveConfluenceContent or any other tool in the write_confluence group.",
  "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

`review-list.md` lists the Confluence procedures due for review, grouped by reviewer, each linked to its page. The session lists it as an artifact, and the session's `result` gives the count of pages by reviewer. The director sends each reviewer their section at the monthly operations meeting, and each reviewer updates the page in Confluence or confirms it is still right, which itself updates the page's date and takes it off next month's list.

What the director checks: a page that is old because the procedure never changed, such as a fire assembly point, which needs a quick read and a save rather than a rewrite; a retired name that appears in a page's history section on purpose; and the reviewer list in the request, which has to change when a manager leaves. The list says which pages are old, not which are wrong, until a person reads them.

## Run it on every first day of the month

In the console, a Project automation with a `schedule` trigger at `0 8 1 * *` in the company's `timezone` runs a saved agent whose connections name `atlassian`, with the spaces, retired names and reviewers in its instructions. The list is ready before the monthly operations meeting, and a schedule fills nothing into the prompt, so the CQL's relative date does the rest.

When the company replaces a system, the director adds its old name to the retired list in the saved agent, and the next run surfaces every procedure that still mentions it.

## Why run it on Rush?

The Atlassian sign-in stays in Rush's connection, with only the read and search tools the job needs, and the agent reads Confluence as the director does. Each run has its own computer and a record of every search and page it read, so when an owner's auditor asks how the company keeps procedures current, the director can show the monthly lists and the sessions behind them.

A CQL search is easy; reading every old page for a retired form number and an unresolved comment is the slow part, and it is what a person skips. The session records its `total_cost_usd`, so the company sees what the monthly review costs.

## Frequently asked questions

### Can the agent update the pages itself?

Atlassian's server has write tools, but this job forbids them. A procedure is how staff are told to work, so a manager who knows the property edits it; the agent only says which pages need that.

### What if our admin has turned off some Atlassian tools?

This job needs only the `read_confluence` and `search_confluence` groups. If a tool in either is not available to the connection, the request tells the agent to report Atlassian's error in its answer instead of returning a partial list.

### Does it read Jira too?

Not in this job. The same Atlassian connection reaches Jira, so a company that tracks procedure changes as Jira issues could add a search for open ones to the request.

## More Atlassian jobs

- [Which Service Desk Requests Are About to Breach Their SLA? An IT Support Provider's Twice-Daily List From Jira Service Management](https://getrush.ai/run/list-service-requests-close-to-breaching-sla/atlassian/)
- [Write Release Notes in Confluence From Jira Issues](https://getrush.ai/run/release-notes-in-confluence/atlassian/)
- [How Do I Get a Jira Time in Status Report? A Delivery Reporting App Builds One From Each Customer's Jira Every Week](https://getrush.ai/run/report-time-in-status/atlassian/)

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

- [Which Client Posts Failed to Publish Overnight? A Social Media Agency's Morning Check of Every Buffer Channel](https://getrush.ai/run/find-posts-that-failed-to-publish/buffer/)
- [Which Linear Projects Are Slipping Past Their Target Date? A SaaS Company's Monday List for the Product Review](https://getrush.ai/run/find-projects-slipping-past-their-target-date/linear/)
- [Which Customer Quote Requests Have We Not Answered? A Wholesale Distributor's Morning Check of Each Sales Rep's Outlook](https://getrush.ai/run/find-quote-requests-with-no-reply/outlook/)

## Keep reading

- [Connect Atlassian to Rush once, then name it on any run](https://getrush.ai/integrations/atlassian/)
- [Start your first run from the developer API quickstart](https://getrush.ai/docs/quickstart/)
- [Rush pricing: Free, Pro and Max](https://getrush.ai/pricing/)
