We built a small Jira Cloud app on Atlassian Forge this month: a checklist panel for Jira work items, with UI Kit, Custom Entities storage and a delete trigger. The Forge templates got us to "hello world" in an afternoon. Most of the time after that went into problems the templates never mention.

Here are three of them, in full. Each one says what happens, the fix, and how we know: whether we hit it live, caught it in code review, read it in Atlassian's docs, or only have a secondhand report. Where we didn't test something, we say so.

1. Forge checks no permissions for you

What happens. A resolver runs with your app's power, not the user's. Jira only decides who can see the work item your panel sits on. Nothing stops a user who can only view a work item from adding, ticking or deleting your app's data on it, unless your code asks Jira first.

Our first build let view-only users write. A code review caught it before any user did.

The fix. Before every write, ask Jira, as the user, whether they may edit that work item:

import api, { route } from '@forge/api'; const res = await api.asUser().requestJira( route`/rest/api/3/mypermissions?issueId=${issueId}&permissions=EDIT_ISSUES` ); 

Then fail closed: a non-200, a thrown error or a missing field all mean "no". Seeing a work item is not permission to change it. Our starter kit checks BROWSE_PROJECTS the same way before reading, so it doesn't depend on which context fields are safe to trust (more on that below).

Two more rules that saved us:

  • When the browser sends an item id, check the item belongs to the work item the user is actually in, and answer "not found" for both "missing" and "someone else's". Ids of other work items then leak nothing.
  • Any screen outside a work item (a project page, a dashboard gadget) gets no help from Jira at all. Filter the list to what the user may see first, for example with a JQL search run as the user (id in (...)). We tested the GET form with an unknown id and a deleted id: Jira simply left them out. We have not tested an id hidden by issue security, which is the case that check exists for.

How we know: the missing check was caught in code review. The permission call is Jira's documented mypermissions endpoint. The issue-security case is untested.

2. Careful error handling can swallow the consent error

What happens. When a user hasn't allowed your app to act as them, asUser() calls throw an error named NEEDS_AUTHENTICATION_ERR. Atlassian's requestJira reference says that if this error is not caught, the user is prompted to allow access.

Now look at what fail-closed code does: it catches every error and returns "no". That also catches this one, so it can hide the prompt, and the user would just see "no permission". It's also easy to miss in testing, because the account you test with has usually allowed the app already.

The fix. Let that one error through, in every catch around asUser() and in your resolver wrapper:

} catch (e) { if (e && e.name === 'NEEDS_AUTHENTICATION_ERR') throw e; // let Forge prompt the user console.error('canEdit', e && e.name); // log the name only return false; } 

It grants nothing (the call still failed), so it's safe either way.

An honest caveat. Atlassian announced in 2021 that it was removing the per-user prompt in most cases, with admins consenting for users. So on a current site you may never meet this error. We had no never-used account to test with. Pass it on anyway, then test once with an account that has never opened your app.

While you're in there: trust the context, not the payload. Take "who" and "where" from the resolver's context, never from the payload, which is whatever the browser sent. But don't assume every context field is safe for authorization: accountId is documented as trustworthy, and we've seen reports that not every value is guaranteed. Check extension.issue on the current resolver docs. Re-checking with Jira, as in trap 1, makes the question moot.

How we know: our own code swallowed the error, and a second reviewer caught it. The prompt behavior is from Atlassian's docs. The 2021 change is a community announcement, and the live behavior is untested by us.

3. UI Kit list rows can act on the wrong item

What happens. We added Up and Down buttons to reorder the checklist. After a move, the rows showed the new order, but the buttons stayed attached to the old positions. Clicking "Down" on one row moved its neighbor. The rows were keyed by the item id, which is what every React tutorial tells you to do.

The fix. Put the position in the key:

{items.map((item, index) => ( <Inline key={`${index}:${item.id}`}> {/* row content and buttons */} </Inline> ))} 

After that change, the moves we tried in the panel each landed on the right row. The same pattern applies to tables, and to any list you filter or hide rows in, because those change positions too. If your table's "Mark done" can act on a filtered list, test it after the filter changes.

How we know: we saw it live, in an issue panel, and checked the fix there.

The other eleven

These three come from a guide of 14 traps we wrote up while building. The rest cover Custom Entities schema rules, list paging, deletion and moved work items, logs, web triggers, testing permissions on a free site, read-before-write, usage billing and the Marketplace checklist.

The full guide, plus a working Forge app built around them, comes as a paid kit: Forge Starter Kit for Jira ($29; I'm the seller). The three traps above are also a free PDF: free preview.

This post was written with AI assistance, from our own build and review notes. Our app ran on a live Jira Cloud site with Forge CLI 16 and the nodejs24.x runtime, November 2026. Forge changes often; check anything you rely on against the current docs.