Inspiration
When a team accepts a model or a feature from a vendor, the acceptance criteria usually live in a Jira issue. If the first results are disappointing, it is tempting to adjust a threshold: 0.05 becomes 0.10. Months later someone asks whether that was the bar before testing, and the answer depends on who remembers what. We wanted the issue itself to keep that record.
What it does
- Lock: one click stores the SHA-256 of the issue's full Description (text, formatting, links and other content), who locked it, when (the app's own clock) and the issue status at that moment.
- Compare: the right-hand sidebar shows "Unchanged since lock" or "Changed after lock". It updates when the issue is edited, without a page refresh, and lists the lines removed and added. A formatting-only change is flagged too.
- Re-lock with a reason: a changed version can only be locked with a written reason. Each version points to the previous one, so the history reads as a chain.
- History: every version with its hash, the previous hash, time, status and reason.
It says plainly what it does not show: that the tests were run as planned, that the results are correct, or an independent timestamp. It does not prevent edits to the Description; it records the locked versions and flags changes.
How we built it
- Atlassian Forge, UI Kit,
jira:issueContextmodule, so the state is in the sidebar of every issue. - The resolver reads the Description and status as the current user (
read:jira-work) and hashes a canonical form of the Atlassian Document Format: keys sorted, editor-generatedlocalIdattributes dropped. A save with no edit keeps the same hash; a strikethrough changes it. - Versions are stored in Forge Key Value Storage (
storage:app), one key per version, so long histories never hit the per-value limit. - Locking requires the user's EDIT_ISSUES permission, checked in the same handler that writes.
- The panel listens to
JIRA_ISSUE_CHANGED, so it reloads after an edit. - No data leaves Atlassian; the deployment is eligible for Runs on Atlassian.
Challenges we ran into
- Our first comparison hashed plain text only, which would have shown a struck-through criterion as "Unchanged". Hashing the full document with a stable key order fixed that.
- A controlled text field in UI Kit dropped keystrokes; the reason field is now uncontrolled.
Accomplishments that we're proud of
- The panel never claims more than it checks: the "Shows / Does not show" box is part of the app.
What we learned
- A record is only useful if the limits are written next to it.
What's next
- An optional marked section of the Description, so routine edits elsewhere are not flagged.
- Export of a version as a file a reviewer can check outside Jira.
Built With
- forge
- forge-kvs
- javascript
- jira
- node.js
- ui-kit