-
-
The issue panel map: what blocks a work item, up to three hops out, across projects.
-
Cross-product context: the goal and the Confluence plan page from the Teamwork Graph join the map.
-
Cross-product context uses the Teamwork Graph API, as the person viewing.
-
The project page ranks critical blockers by how much open work each one holds up.
-
Blockers only and Cross-product context, kept in the page address.
-
Exports: SVG and Mermaid text of the same view.
-
The dashboard widget counts blocked work items and date clashes and lists the top blockers.
Inspiration
"Is the launch page going live on time?" Jira answers with two lines: this work item is blocked by two others. To know whether that matters you open each blocker, then each of their blockers, and soon you are in another team's project, reading due dates and keeping a chain in your head. The plan everyone is working from sits in a Confluence page, and the goal the work is for lives somewhere else again.
Blockers hide across projects, and the reasons they matter hide across products. We wanted one picture that answers "what is really holding this up, and is it going to be late?", right where the work item is.
What it does
Context Map is a free Forge app for Jira Cloud with three views.
- Issue panel map. Open any work item and the panel draws what blocks it and what it blocks,
up to three hops out, across projects (up to 60 work items). Blocked chains are red; a blocker
due after the item it blocks is a date clash, in amber with a dashed "late" link. Every
marker is also a text tag (
[BLOCKED],[DATE CLASH],[THIS ITEM]), and lists under the map say the same in plain text, so nothing depends on colour. - Project page. Map an epic, a fix version or any JQL query (up to 150 work items, 0 to 2 hops out). Critical blockers are ranked by how many open items each one holds up, directly or down a chain. Filters (hide done, blockers only, link types, projects) are kept in the page address, so a view can be shared and survives reload, Back and Forward.
- Exports. PNG, SVG and Mermaid text of the current view, made in the browser.
- Dashboard widget. For a project or a JQL query: the number of blocked work items, the number of date clashes, the top three critical blockers, and "Open the map", which opens the project page with the same query.
- Cross-product context, from the Teamwork Graph. Tick "Cross-product context" on the panel or the page and Context Map adds the things the work items are connected to across Atlassian, as their own labelled nodes: Confluence pages, goals, pull requests, Atlassian projects and teams. On the demo site this shows the goal "Increase sales conversion rate" and the Confluence plan page that mentions five of the work items. Click a node to open it.
- Private by design. Everything is read as the person viewing, with read-only scopes. The app has no storage of its own and makes no outside calls. Eligible for Runs on Atlassian.
How the Teamwork Graph is used
- The Jira map itself (work items, blocks links, due dates, statuses) comes from the Jira REST API, read in the browser as the viewer. On our site Jira-to-Jira links are not in the Teamwork Graph, so blockers do not come from the graph.
- The Cross-product context layer comes from the Teamwork Graph API. When the box is
ticked, the app's Forge resolver calls
requestTeamworkGraphfrom@forge/apias the viewing user (api.asUser()), running one saved Teamwork Graph (Cypher) query by its key with the map's work item ids as the only parameter. It reads 25 rows a page, follows cursors, retries busy answers with backoff, and sends up to 100 work items per run. The front end can only pass work item ids and a cursor, never query text. - The query asks for each work item's linked Confluence pages (also those that arrive as Jira
remote links), goals, pull requests, Atlassian projects and teams. Scopes:
read:graph:issue:jira,read:graph:issue-remote-link:jira,read:graph:page:confluence,read:graph:goal:atlassian,read:graph:project:atlassian,read:graph:team:atlassian,read:graph:pull-request:external, plusread:jira-work. - Seen live on one-atlas-qros (production install, 1 Dec): Confluence page and goal nodes. Pull request, Atlassian project and team nodes are drawn by the same code and covered by tests and the local harness, but the demo site has no code tool connected and returned no team edge, so those three types were not seen on a live site.
- If the graph refuses, is busy or is switched off, the Jira map stays exactly as it was and a plain sentence says why and what an admin can do.
How we built it
- Forge modules:
jira:issuePanel,jira:projectPage,dashboards:widget(with its edit resource) and one resolver function. Custom UI for all four views. - Drawing: Cytoscape with the ELK layered layout, bundled into the app (nothing loaded from outside). Jira links are walked breadth first with a hop limit and an item cap; chains, date clashes and the critical-blocker ranking are pure functions with unit tests.
- Teamwork Graph: a saved Cypher query registered for the app, run through
requestTeamworkGraphas the user, with paging (25 rows), cursor following, retry with backoff on 429 and 5xx, and a separate retry for a short-lived "not permitted" answer we saw from the graph during testing. Graph nodes are merged so a page linked from five items is one node. - Widget settings are kept by Jira with the widget (
widgetEdit.onProductSave), so there is still no app storage. - Exports: PNG from the canvas, SVG and Mermaid written from the same model, with text labels and short safe ids (no internal graph ids or cloud id in the files).
- Two builds from one source: the contest build (this entry) and a Jira-only build for the
Marketplace with the graph layer swapped out at build time and only
read:jira-work. The build checks itself and stops if any graph code or scope slips into the Jira-only bundle. - Checks: 103 unit tests; a local harness with made-up data; then the real Forge frames on a Jira Cloud site, in light and dark: counts compared with Jira's own REST data, zero CSP reports, zero requests from the app frames to any non-Atlassian host. The CLI reports the build eligible for Runs on Atlassian.
Challenges we ran into
- Jira-to-Jira links are not in the graph on our site. We expected to read blockers from the Teamwork Graph and found none there. So blockers come from Jira's REST API and the graph is used for what it does well: the context around the work.
- Confluence pages arrive as remote links. A page linked from Jira shows up through the work item's remote links, not as a direct page edge, so the query reads both and merges them by address into one node.
- Saving a query is not a console step. A saved Teamwork Graph query is registered with a request made as an app contributor; then the app runs it by key. We wrote a small script for it.
- A refusal that comes and goes. The graph sometimes answered "not permitted" for a few seconds after an idle spell, then answered normally. Telling the user to ask an admin was wrong, so such an answer is now retried for about 30 seconds before any message.
- Keeping it readable. Long summaries, crossing links and labels under boxes. Text tags on every node, lists under every map, and an SVG export that places link labels where no box covers them.
Accomplishments we're proud of
- The map answers a real question in one glance: here, the go-live is blocked by a chain that starts in another team's project, and a load test that is due one day too late.
- The graph layer adds context without ever putting the Jira answer at risk.
- No storage, read-only scopes, no outside calls, and it still feels like a full product: a panel, a page, exports and a widget that agree with each other and with Jira.
What we learned
The Teamwork Graph is most useful as context, not as a replacement for the product's own data. And a map is only trusted if it says the same thing in words.
What's next
- Show the team and pull request nodes on more sites as the graph fills those edges.
- A "Copy link to this view" button and saved views.
- More link types by default (for example "relates to") with their own styles.
- A Jira-only version on the Marketplace, free.
Built With
- atlassian-design-tokens
- custom-ui
- cytoscape.js
- elkjs
- esbuild
- forge
- javascript
- jira
- node.js
- playwright
- react
- teamwork-graph