Skip to main content
Glama
README.md
# Roundtrip for Jira

Edit a Jira issue description as plain Markdown, by hand or with an AI agent, without losing images, panels, mentions or anything else Markdown can't show. Those parts are locked in the text, and every save is checked against what was there before. If a save would lose something, Roundtrip refuses it and shows what would have changed.

**Status:** in development (November 2026), for Atlassian Codegeist 2026 and Kiroween 2026. Built with [Kiro](https://kiro.dev).
- **The Forge app** is tested offline and in a browser, and deployed to a development environment on its owner's demo site. It hasn't been tried on Jira yet.
- **The playground**, a web page that runs the same guard and editor with no Atlassian account, is published at [faizydroid.github.io/roundtrip-for-jira](https://faizydroid.github.io/roundtrip-for-jira/). Its browser test passes there.

See [What was tested](#what-was-tested).

## Why

- Jira Cloud has no plain-text editor. In June 2019, Atlassian announced that it had removed wiki markup from its new editor, in favor of Markdown typed into the rich editor ([Atlassian](https://community.developer.atlassian.com/t/jira-cloud-new-issue-view-editor-changes/29993)). The request for a plain-text Markdown editor, [JRACLOUD-72631](https://jira.atlassian.com/browse/JRACLOUD-72631), had 1,794 votes on Dec 3, 2026.
- AI agents edit Jira all day. Atlassian's Rovo MCP server handles more than 5 million tool calls a day, and nearly a third of them are writes ([Atlassian](https://www.atlassian.com/blog/jira/mcp-enhancements)).
- Those edits can lose content without any warning. [docs/evidence.md](docs/evidence.md) shows a reproduction with Atlassian's own MCP connector: an image inside a list item was dropped, and Jira deleted the attachment.

## What's in it

| Part | What it does | Where |
|---|---|---|
| **Edit as Markdown** | An item in an issue's ••• menu. It opens the description in an editor that shows locked parts as chips and cards, checks the edit as you type, and saves through the guard | `app/static/dialog/`, `editor/` |
| **Two MCP tools** | "Read description as Markdown" and "Update description from Markdown", for Rovo Studio agents and outside MCP clients. The update tool has a required dry run | `app/src/backend/`, `app/manifest.yml` |
| **A skill** | `edit-jira-description`, a SKILL.md that teaches any agent the safe routine: read, edit, dry run, show the diff, ask, save | `app/skills/`, and Kiro's copy in `.kiro/skills/` |
| **The Roundtrip agent** | A Rovo agent that uses the skill. It always shows the change and asks before saving | `app/agent/` |
| **The core library** | ADF to Markdown with locked tokens, Markdown back to ADF, and the guard | `core/` |
| **The playground** | A static web page with the same editor and guard, on sample descriptions or one you paste. It needs no Atlassian account, and sends nothing anywhere | `playground/` |

Every save writes Jira's own format (ADF) through Jira's REST API, as the user. A save never passes through a lossy converter, and Jira's own permissions and history apply. The app sends nothing outside Atlassian and stores nothing.

## How it decides what's safe

- **Locked parts.** Anything Markdown can't show becomes a token: `[@Alex Example](locked:mention/1)` inline, or a fenced block that starts with ```` ```locked:image/1 ````. A token may move, but it can't be changed, removed, copied or invented. The editor shows tokens as chips and cards, and blocks typing inside them.
- **The guard.** Before every save, the Forge function reads the description again and checks the edit against it. It refuses if a locked part would change or disappear, if the description changed since it was read, or if the Markdown uses something that can't be saved. Each reason comes with its line and a fix.
- **Everything else is kept.** Blocks the edit didn't touch keep their exact JSON, including hidden attributes such as `localId` and formatting Markdown can't show, such as bold on a space.
- **After a save,** the app reads the description back and compares it with what it sent, and checks the issue's history for anyone else's edit at the same moment. Jira has no conditional update, so another person's simultaneous edit can be overwritten. The app reports it, but can't prevent it.

## Try the playground

**Open it at [faizydroid.github.io/roundtrip-for-jira](https://faizydroid.github.io/roundtrip-for-jira/).** It needs no account.

![The playground after a save: the ADF tab shows that only the edited line changed, and the screenshot's locked card is kept](docs/images/playground-saved.png)

1. The page opens on the case that Atlassian's MCP connector gets wrong: a screenshot under step 2 of a list. It shows as a locked card.
2. Edit the text. The verdict on the right updates as you type, as in Jira.
3. Under **Try an example**, choose **Remove a locked part**. That's what an agent's rewrite can do. The guard refuses it, and says why. Undo takes it back.
4. Make an edit that saves, such as **Add a sentence**, then select **Save**. The **ADF** tab shows what the Jira app would write: only the edited block changes, and the screenshot's JSON stays exactly as it was.
5. Pick another sample from **Description**, or choose **Paste your own** and paste a description's JSON from Jira's REST API. It stays in your browser tab.

Saves stay in the page. Nothing is sent to Jira or anywhere else: the page's content security policy blocks every connection, and the browser test checks that.

## Install (for judges and testers)

> The installation link will be here after the production deploy (planned for Dec 15, 2026). Until then, the app can only be installed by its owner.

1. Open the installation link, choose your Jira site, and approve the app's two permissions: read and write Jira work.
2. Open any issue, choose **•••**, then **Edit as Markdown**.
3. The first time, Jira asks you to **Allow access**. Roundtrip then reads and writes as you, with your permissions.

## Use "Edit as Markdown"

1. Edit the text. Images, mentions, panels and tables show as chips and cards. You can move them, but not change them.
2. The panel on the right shows the verdict as you type: **Ready to save**, **No changes yet**, or **Can't save yet** with each problem. Select a problem to jump to it.
3. **Changes** shows the diff. **Locked parts** lists every chip and card. **Show tokens as text** shows the Markdown underneath.
4. Select **Save**. Roundtrip checks again against Jira's current description, saves, and refreshes the issue.

## Ask the Roundtrip agent

1. In Jira, open **Rovo** and choose the **Roundtrip** agent.
2. Ask in plain words, such as "Turn the steps in SCRUM-8 into a numbered list".
3. The agent reads the description, runs a dry run, shows you the diff, and asks **Save this change?** It saves only after you say yes.

## Add the tools to your own Rovo Studio agent

1. In Rovo, choose **Create agent**, then skip to the manual step.
2. Under **Tools**, choose **Add tools**, find **Roundtrip for Jira** under connected apps, and add both tools.
3. Under **Skills**, add **edit-jira-description** if Rovo lists it. Skills are in Preview, and whether Rovo lists app skills here hasn't been checked yet.

## Connect an outside MCP client, such as Kiro or Claude Code

1. A site admin turns the tools on: Atlassian Administration, then **Apps**, **Sites**, your site, **Connected apps**, **Roundtrip for Jira**, and **Tools**.
2. Add `https://mcp.atlassian.com/forge/6386027b-ebf5-4f1c-b374-720e08f087f8` to your client as a remote MCP server.
3. Sign in when the client asks, and choose your site.
4. Give the client the skill, [`app/skills/edit-jira-description/SKILL.md`](app/skills/edit-jira-description/SKILL.md). Kiro already has it in `.kiro/skills/`.
5. If a tool answers `CONSENT_REQUIRED`, open "Edit as Markdown" on any issue once and choose **Allow access**.

## What was tested

| What | How | Result | Record |
|---|---|---|---|
| The core library | 66 tests, 9 of them property-based, with 2,000 generated cases each | All pass | [docs/checks/core-2026-11-19.md](docs/checks/core-2026-11-19.md), [docs/checks/forge-app-2026-11-20.md](docs/checks/forge-app-2026-11-20.md) |
| The app's logic | 85 tests against an in-memory Jira: every outcome, retry and error, and the manifest's limits | All pass | [docs/checks/forge-app-2026-11-20.md](docs/checks/forge-app-2026-11-20.md) |
| The editor | 27 tests, including a property test, with 2,000 cases, that it finds exactly the tokens the core library writes | All pass | same, and [docs/checks/playground-2026-11-21.md](docs/checks/playground-2026-11-21.md) |
| The real dialog in a browser | 7 checks in Chromium, with a fake Forge bridge and the in-memory Jira | All pass | [docs/checks/forge-app-2026-11-20.md](docs/checks/forge-app-2026-11-20.md) |
| The playground's logic | 107 tests, including every example edit on every sample, checked against the guard | All pass | [docs/checks/playground-2026-11-21.md](docs/checks/playground-2026-11-21.md) |
| The playground in a browser | 14 checks in Chromium, served from a sub-path as on GitHub Pages: every sample, a save, refusals, pasting, the keyboard alone, a phone-sized window, no outside requests, and axe-core in both themes | All pass | same |
| The published playground | The same 14 checks, run against [the public page](https://faizydroid.github.io/roundtrip-for-jira/) | All pass, and every request stays on the page's own origin | same |
| The Forge deploy | `forge lint`, a deploy to development, an install on the owner's demo site, and `forge eligibility` | All pass. Eligible for Runs on Atlassian | same |
| **On a real Jira site** | **Not yet.** No function has run on Jira | | same |

Roundtrip only claims what's in that table. "Lossless" here means what the property tests prove: for every generated document, a round trip with no edit returns the same document, and every edit that touches a locked part is refused.

## Build and test

Node 22 or newer. From the repo's root:

```
npm install
npm --prefix core install
npm --prefix editor install
npm --prefix app install
npm --prefix playground install
npm run test:quick                        # the offline tests of all four packages
npm --prefix app run test:browser         # the dialog in Chromium (uses a Chromium that Playwright installed)
npm --prefix playground run test:browser  # the playground in Chromium, the same way
```

The playground on its own needs only `core`, `editor` and `playground` installed:

```
npm --prefix playground run build    # builds the core library, then the page into playground/dist
npm --prefix playground run preview  # serves it at http://localhost:4173
```

`.github/workflows/pages.yml` builds and tests the same way on GitHub, and publishes `playground/dist` to GitHub Pages on each push to `main`. Before a push, `npm run check:public` looks for secrets in every commit and checks Kiroween's rules.

`PLAYGROUND_URL=<a published page> npm --prefix playground run test:browser` runs the browser test against a published page. `npm --prefix playground run record:demo`, with the same variable, records the first, silent demo video and the gallery screenshots into `submission/`, which git ignores.

The narrated demo video is made in `video/`, with a Chromium that Playwright installed and ffmpeg on the PATH:

```
npm --prefix video install
npm --prefix video run capture            # screenshots of the published playground (PLAYGROUND_URL overrides it)
npm --prefix video run voice              # the narration from ElevenLabs, with ELEVENLABS_API_KEY in .env
npm --prefix video run voice:draft        # or a draft narration with Windows' own voice
npm --prefix video run render -- --final  # the MP4 and its captions (SRT) into submission/
```

The video's frames are drawn by `video/comp/`, an HTML page that is a pure function of time, and its music and sound effects are made by `video/scripts/sound.ts`. Every verdict on screen is a screenshot of the published page's own guard. The last render's checks are in the [video check record](docs/checks/video-2026-12-03.md).

The Forge CLI is pinned to 14.2.0 and runs from the repo, as `npm --prefix app run forge -- <command>`. `npm --prefix app run deploy` builds the core library, the dialog and the functions' bundle, then deploys to development. The app bundles its own functions with Rolldown, and Forge uploads that bundle as is ([why](.kiro/specs/forge-app/design.md#10-packaging-and-dependencies)).

## License

[MIT](LICENSE). The ADF JSON schema in `core/test/fixtures/adf-schema/` is Atlassian's, under Apache-2.0, and is used only by the tests.