Inspiration

Month-end close is a checklist of dozens of controls — bank and intercompany reconciliations, accruals, prepaid amortization, vendor reviews — and more and more finance teams run it in Jira. The hard part is not the checklist; it is the moment before you tick an item off. A controller has to open linked items, check sub-tasks, look for exceptions nobody signed, compare the unreconciled difference with materiality, make sure the preparer is not also the reviewer, and find the policy that governs the control. Every miss is a potential SOX/ICFR audit finding. We wanted that context in one place, with sources, at the moment of closing.

What it does

  • Issue panel "CloseContext – can I close this?" on any Jira work item: a green / amber / red verdict, every reason as a sentence with links to the Jira work items and Confluence policy pages it is based on, and tabs for owners (preparer, reviewer, policy owners), related work still open, close exceptions (signed or not) and the governing policies. A footer shows which sources answered (Teamwork Graph + Jira REST) and how long it took.
  • Rovo agent "CloseContext" for questions in chat, per item or for the whole close ("What is blocking the November close in MEC?" → 7 controls, 3 red, 2 amber, with reasons and links).
  • Rovo skill and MCP tools so other agents and MCP clients can reuse the same checks.
  • Admin page for the materiality threshold, the hard-close date and the labels that mark controls and exceptions.

The verdict is a deterministic, auditable rule set — red: open blockers, open sub-tasks, unsigned close exceptions, material difference without a signed exception, preparer = reviewer, hard close passed; amber: no owner, no reviewer, no policy linked, related work open, overdue. No LLM runs inside the app.

How we built it

  • Forge (Node.js 24 runtime) with UI Kit: jira:issuePanel and jira:adminPage.
  • One engine (src/lib/assess.js) shared by the panel resolver and the Rovo actions. It runs two parallel rounds of calls: (1) the issue with its closecontext issue property, remote links and settings; (2) Teamwork Graph hierarchy, exception labels via JQL, the reviewer and the policy-page owners.
  • Teamwork Graph curated queries via requestTeamworkGraph (named operations, paging, retries on transient errors), merged with Jira REST v3; Confluence REST v2 as a fallback for page owners (the app is Jira-required, Confluence-optional).
  • Forge KVS for settings and short-lived caches (site URL, policy owners). All product calls run asUser().
  • Rovo: rovo:agent with a prompt file, five GET action modules, a rovo:skill, and rovo:mcp with app.rovo metadata.
  • Demo data seeded through the Jira and Confluence REST APIs (scripts/seed.py): project MEC "Month-End Close" (14 work items, sub-tasks, blocking and relates links, two close exceptions, issue properties) and the Confluence space FINCTRL with four policy pages.

Challenges we ran into

  • Teamwork Graph does not accept API tokens from scripts, so its queries can only be tested inside Forge; we downloaded the schema to find the right curated queries (jiraWorkItemHierarchy, confluencePageOwners).
  • Teamwork Graph can fail with HTTP 200 and an errors array, and once returned an intermittent OperationNotSupported; we treat any error as "could not read", retry, fall back to REST and tell the user.
  • The graph does not expose labels or issue properties, so recognising close exceptions and reviewers needs Jira REST alongside the graph.
  • Jira link direction (inwardIssue blocks outwardIssue) is easy to get backwards; our first seed made the accrual block the vendor review instead of the other way round.
  • A first panel load took about 25 s on a cold start; we parallelised the calls and cached stable data in Forge KVS.

Accomplishments that we're proud of

  • On the seeded close the engine returns the expected verdict for every control (MEC-1 green, MEC-4 red with three reasons, MEC-9 red for segregation of duties, MEC-10 amber, MEC-11 green with a signed exception…), the panel renders it in Jira, and the Rovo agent answers the whole-close question with correct links.
  • Every statement the app makes is backed by a link a controller or auditor can click.
  • One engine, four surfaces (panel, agent, skill, MCP) and no data leaves Atlassian. The production version is eligible for Runs on Atlassian.

What we learned

  • Curated Teamwork Graph queries are the fastest way to get cross-product context (Jira relations plus Confluence page owners) as the user, but they need named operations, explicit per-object scopes and defensive error handling.
  • For regulated workflows a deterministic rule engine with citations is easier to trust than a free-form AI answer; Rovo is then the conversational layer on top, not the source of truth.

What's next for CloseContext

  • A close dashboard (project page) with the readiness of every control and its trend through the close.
  • Configurable rule packs per entity (materiality per account, multi-level sign-off for write-offs above a limit).
  • Writing close evidence (who checked what, when, with which verdict) back as an audit trail.
  • Teamwork Graph connectors to bring ERP reconciliation status into the graph.

Built With

Share this project:

Updates

Submission history