Jira Dashboards: upcoming changes and new Forge dashboard:widget module general availability

@AllanahMiller Thanks, that helps.

Now another problem, with filters. We saw no data with the default dashboard filters, so assumed things were filtered out — but removing them doesn’t show anything either.

With no filters applied, Jira’s own All work items widget says:

▎ No data available — Try adjusting the dashboard or the widget filters.

The filter bar is empty too: Work item priority and Work item status both show “No results found”, so we can’t even set a filter to test with. Yet a Forge widget on the same dashboard, using the REST API with JQL, returns 170 open work items.

This is our developer test site — does the new dashboard need data enabled per site, or should it work out of the box?

Related: once filters work, how does a filter change reach a widget that’s already mounted? extension.filters is right at mount, but we found no way to be notified of changes — clearing a filter left our widgets with their original data and the old filter set still in context.

We are migrating a Custom UI Forge app from the legacy Jira dashboard modules to:

dashboards:backgroundScript
dashboards:widget

Our widgets communicate with the background script through @forge/bridge events. On initial dashboard load, everything works correctly

However, after opening an existing widget’s edit dialog and clicking Jira’s Save button, Jira removes the background-script iframe from the dashboard DOM. The widget iframe is recreated, but the background script is not recreated.

Is this expected lifecycle behavior for dashboards:backgroundScript after saving a widget?

Hi,

Some questions on dashboards:widget with Custom UI:

  1. What is widget.setPreviewConfig() for, and does anything passed to it persist? It’s the only function the view side exposes. Post 13 reported it does nothing, and the reply in 16 pointed to updateConfig without saying what it’s for.

  2. Is there a size limit for the widget config? The classic item properties API documented one (“maximum length is 32768 characters”) and we can’t find an equivalent for the config.

  3. Is a public API planned for the new dashboards — list, create, add widgets? They aren’t reachable through the classic REST API: GET /rest/api/3/dashboard/{id} returns “The dashboard with id ‘…’ does not exist”, and they don’t appear in GET /rest/api/3/dashboard. Classic dashboards on the same site respond normally, so it isn’t permissions. This one blocks us.

  4. Is the widget config the only per-widget persistence? Dashboard item properties gave a gadget a store separate from its configuration, and we can’t find an equivalent.

  5. Can anything be persisted from the view entry point? The view gets getWidgetApi, edit gets getWidgetEditApi, so every writing function is on the edit side and edit calls throw in a view instance.

  6. Does saving replace the config wholesale, with no partial update? That’s how we read post 20: returning null from onProductSave clears the stored config rather than skipping the save.

  7. How do we tell the edit form from the preview pane? Both report the same placement. We currently call an edit-side function and catch the failure, which works but relies on an implementation detail.

  8. Can a widget request its own height? Layout looks read-only and we found no sizing API, whereas a classic gadget could set its height.

  9. Is a widget deletion event planned? We couldn’t find one. On the classic surface item properties were removed with the item.

  10. Is the non-React subscription API mentioned in post 20 planned? We’re using the events approach from post 19 meanwhile.

Thanks.

Two follow-ups since my earlier post.

Correction to question 8. A widget can set its own height, but only through an undocumented path. Forge mounts Custom UI inside an iframe-resizer v4 iframe (id="iFrameResizer0") and loads its child script, so window.parentIFrame is available with autoResize, size, getPageInfo, setHeightCalculationMethod and others. Calling autoResize(false) and then size(h) works. So the question is really: is relying on parentIFrame acceptable, or is a supported equivalent planned?

And one more question:

  1. How should a widget whose content sizes itself coexist with the iframe auto-resizing? By default the iframe height follows the measured content, which is a poor fit when the content sets its own size. Ours renders a tree that assigns its SVG height on every update and animates the change, so each redraw resizes the iframe. Two consequences we hit: dropdown menus inside the widget close on window.resize, so opening one resized the iframe and closed the menu that had just opened — intermittently, which made it hard to pin down; and the content has a minimum height, so small widgets always grew past their card. We worked around both with parentIFrame.autoResize(false) and size(extension.layout.height). Is that the intended approach, or is there a supported way to tell the platform to size the iframe from the layout instead of from the content?

Thanks.

Hi @RaimundasJuska - this sounds like an issue with the underlying data on your site, we may need to reload this or look more closely. Can you please email me your site URL to amiller4@atlassian.com and we will investigate.

Hi @vivekfitkariwala1 - thanks for flagging, this is a known bug, we are working to roll out a fix for this by the end of this week.

Hi @dortizkintosoft, thanks for your details here:

  1. It is to set the preview config you want to show, when the widget is in the list-view preview mode, per screenshot in developer.atlassian.com/platform/…/dashboard-widget#…
  2. We are still undecided on the size limits, so curious how much would your app like to store for the widget config? (What is the estimated size?)
  3. Yes it is planned, we will provide another announcement with release timelines
  4. Yes, and it is intentional to consolidate them. If this is causing issues let us know.
  5. Currently no as it is a part of our design to have configuration only available in the form. Let us know if this is a blocker, we can discuss further.
  6. Yes that is right, if this is causing issues let us know.
  7. You can get extension.entryPoint from view.getContext(). We are also happy to expose that via useWidgetContext if it is helpful, let us know.
  8. & 11. Thanks for raising this issue, yes you can use parentIFrame.autoResize(false) and size(extension.layout.height) as a workaround for now and we will properly support an API for enabling/disabling iframe autoresizing.
  9. Do you mean a widget deletion callback via the bridge? If so then yes, that is planned.
  10. Not planned at the moment but let us know if this will help and we can plan it.

Please feel free to email me directly - amiller4@atlassian.com if easier.

Thanks @AllanahMiller, that unblocks most of it. Answering what you asked, then some follow-ups.

2 — config size. Measured on a test site, one of our widgets stores 764 characters. It isn’t bounded by the app: we keep one entry per item the user deselects in a filter, so someone filtering heavily on a large site reaches tens of KB.

The classic surface took a set of properties per dashboard item, so when one hit the documented 32768 limit we just added another. A widget has a single config object, so that isn’t possible any more — everything has to fit in one value. Another of our widgets is the worst case here; the one measured above is modest.

We’d ask for at least 32768, preferably more. And if it lands lower, what is the supported place for configuration that doesn’t fit?

3 — public dashboards API. Good to hear. When you scope it, these are the operations we need, because an existing feature of ours uses their classic REST equivalents today: create a dashboard (or take an existing one), add a widget to it, and write that widget’s configuration. The user triggers the action from inside our app and we materialise the result on a dashboard. Without those three it can’t be ported.

4 — is the widget config the only per-widget store? No issue for us. Consolidating is fine; the only consequence is the size question above.

5 — persisting from the view. Not a blocker.

6 — wholesale save. No issue. We return the complete config from onProductSave.

7 — entryPoint. Thanks — we checked it on all three surfaces, and it’s only populated on one:

surface extension.placement extension.entryPoint
edit form WIDGET_EDIT "edit"
preview pane WIDGET_EDIT absent
dashboard view DASHBOARD_VIEW absent

So placement separates the dashboard view from the preview, but not the form from the preview — which is the case we actually need — and entryPoint is only set on the edit entry point. We can treat “not edit” as the view, but that is inferring from an absent value rather than reading one the platform states. Could entryPoint be populated on every entry point? Then we’d drop our current probe, which registers widgetEdit.onProductSave and catches the failure. We’re on Custom UI, so view.getContext() is the right place for it; useWidgetContext wouldn’t help us.

9 — deletion callback. Yes, a callback via the bridge is what we meant, but our question was poorly aimed: we don’t need it to clean up after ourselves, since we keep nothing outside the widget config. What we need first is the creation side in 3. Deletion would matter there as a rollback — if creating a widget and writing its configuration can fail halfway, we need a way to undo it rather than leave an empty widget on someone’s dashboard.

10 — non-React subscription API. Yes, it would help, and here is the concrete case: we poll extension.layout once a second because we found no way to be notified when the widget is resized. An event for layout changes would remove that poll.

Follow-ups:

12 — the migration function and the preserved item properties. The announcement says gadget configuration won’t migrate automatically and that we implement a migration function Jira invokes, with the API published before migrations begin. On 24 September, answering @nathanwaters, you confirmed existing dashboard-item properties “will be preserved” (post 9). Preserved where, and how do they reach us? Will the migration function receive every item property the gadget wrote, or only its config? What is it expected to return? Our gadget keeps data in a separate item property, not in config, so this is what decides whether our customers’ saved data survive. A rough date for the API would help us plan.

13 — preview pane size. In the edit panel’s preview, extension.layout reports the size the widget has on the dashboard, not the space the panel gives the preview. Measured on our site: layout.height was 318.8 while the pane’s scrolling container was 42 px high, and getPageInfo only gives the distance to the window edge — 209 px — not the pane. Is there a supported way to know the space available to the preview? We currently size the preview to the widget’s own height, which is accurate but cramped.

14 — autoresize API. When the supported autoresize API lands, will it also let a widget ask for a specific height, or only turn the content-based sizing off?

15 — module coexistence. Our manifest declares jira:dashboardGadget and dashboards:widget at the same time and both work. Is that supported during the transition, or are we relying on something accidental?

16 — Isolated Cloud and Government. We ship our app in commercial, Isolated Cloud and Atlassian Government Cloud, declaring the same modules in all three. Neither this announcement nor the Work Item View 2.0 one mentions either environment, and we can’t plan for them without three answers:

  • Is dashboards:widget available in Isolated Cloud and in AGC? The AGC Forge feature roadmap lists storage and compute but no UI modules at all, so we can’t tell whether the target module even exists there.
  • Does the 17 May 2027 removal apply on the same date in those environments, or do they have their own schedule? AGC receives changes bundled or after a significant change review rather than through the standard release train.
  • Will the new dashboard surface itself reach those environments, and roughly when?

17 — manifest properties the reference doesn’t cover. Two things our widgets declare that the dashboards:widget reference doesn’t describe, and both work today.

thumbnail is documented as “the absolute URL of the icon”. We pass a Forge resource reference instead — resource:<key>;images/<file>.png — and it renders correctly. Post 13 already raised the wording and you called it a documentation issue; what we’re missing is the supported answer. Are resource references accepted, so the icon can stay inside the app bundle instead of being hosted externally?

And can its size be set in any way? Measured on our site, the widget picker paints the thumbnail at 30x30, and a non-square image uses even less of that box. At that size nothing but a plain glyph survives, so a thumbnail cannot show what the widget actually renders — we supplied a 600px-wide image and it comes out the same size as a 120px one. Is 30x30 fixed, or is there a supported way to ask for more? If it is fixed, please state the expected dimensions and aspect ratio on that page: right now it gives neither, so there is no way to prepare the image correctly except by trial.

resolver isn’t listed among the module’s properties either — only key, title, description, thumbnail, resource, edit and aiContext. We declare it and it works. Our widgets are Custom UI and call invoke(), so they cannot work without it. Is resolver supported on dashboards:widget with Custom UI, and will it stay?

Both are the same concern as 15: we’re building on behaviour that works but isn’t documented, and we’d rather not discover at removal time that it wasn’t supported.

Thanks.

@AllanahMiller two follow-ups on dashboard filters:

  1. extension.filters shape. We can’t reliably build on it until it’s documented. Is the shape stable, and when can we expect docs for it? To be clear, I don’t mean the dashboards:filter (https://developer.atlassian.com/platform/forge/manifest-reference/modules/dashboard-filter/) module, which is for apps that provide filters. I mean the filters a widget receives in its context.
  2. Filter-change event. When the user changes the filter bar, a mounted widget keeps the filters it was loaded with. Nothing tells the app that they changed, and an app cannot know what it is not told. Is a filter-change event planned for Custom UI widgets?

Hi @AllanahMiller, thank you for the announcement.

We are migrating a Custom UI app from jira:dashboardGadget to dashboards:widget and have two questions about the configuration.

What we see

Legacy jira:dashboardGadget – the saved configuration is in the context on both sides, so the resolver can read it directly:

// backend (resolver)
resolver.define('getData', (req) => {
  const config = req.context.extension.gadgetConfiguration;
});
// frontend (Custom UI)
import { view } from '@forge/bridge';

const context = await view.getContext();
const config = context.extension.gadgetConfiguration;

New dashboards:widget – the configuration is in the frontend context only. In the resolver, req.context.extension has no config (and no layout or placement):

// backend (resolver)
resolver.define('getData', (req) => {
  const config = req.context.extension.config; // undefined !!!!!!!!
});
// frontend (Custom UI)
import { view } from '@forge/bridge';

const context = await view.getContext();
const config = context.extension.config;

Our current workaround is to read the configuration on the frontend and send it in the invoke payload:

Questions

  1. Will the widget configuration be available in the backend context?
    Is the absence of req.context.extension.config for backend dashboards:widget intentional, or is it planned to be added (the same way gadgetConfiguration is delivered for jira:dashboardGadget)?

  2. How will the existing gadget configuration be migrated, and where will it end up?
    Where does the context.extension.gadgetConfiguration field go after the migration?

Thank you in advance!

Thanks so much for the additional information. Feel free to email me at amiller4@atlassian.com if you want to follow up there.

2 — Could there be a use case where there is more than 32768? To ensure that the widgets are still performant, we’d recommend setting a limit in the frontend to not exceed a certain amount of filters. We are still internally discussing if 32KiB is a good size but you can assume that is the hard limit for now.

3 — Thanks, do you mind sharing a bit more of how these APIs are used so we can understand the use cases better?

7 — An empty extension.entryPoint means it is the default entrypoint, which means “view” in this case. So you can safely use extension.entryPoint === ‘edit’ to distinguish the edit form. We will make that convention explicit in the documentation.

9 — Thanks for the clarification, would the public APIs for creating, configuring, and deleting widgets cover that requirement, or is there a specific operation you need through the bridge?

10 — Thanks, we will prioritise improving that.

12 — You can see our recent RFC on this here. The goal is to move all the old configuration into one widget configuration per widget.

13 — “extension.layout reports the size the widget has on the dashboard, not the space the panel gives the preview” We were unable to reproduce this issue on our side, the height/width should be providing the preview container’s height/width when it is in the preview. Could you provide more details or raise an ecosystem support ticket for this? https://developer.atlassian.com/support

14 — Currently only planning to allow disabling the content-based sizing, is letting widget specifying the iframe height a blocker as well?

15 — Yes the module coexistence is supported and intentional as we are going through the migration phase.

16 — Good callout. We are still working to get our new dashboards ready on Isolated Cloud and Government environments. We will have further announcements on this once it’s ready.

17 — Yes you’re right, both resolver and resource:;images/.png are actually supported just not mentioned in docs (We will update it).

The thumbnail is currently fixed to a maximum of 30x30 pixels and preserves the original image’s aspect ratio so it always fits within the 30x30 box, but we are considering to allow it to fill the current box (up to 48x48 with a border radius). Would 48x48 be sufficient?

Hey @AllanahMiller! I’m going to echo a few of the comments from others, to make it more obvious when concerns are shared by multiple apps. I’ll send more later as we work through testing more cases.

Live preview while editing: We’d like that too; having a preview pane seems much less useful if the users can’t actually see the effects of their changes.

displayConditions on widgets: Very useful, especially if they can depend on feature flags (very useful to roll out new widgets progressively) and advanced editions (advanced edition widgets should not appear at all in the standard edition).

returning null means clearing the save entirely (not skipping) — this seems like an unnecessary foot-gun. When would this behavior be useful?

provide an easier API for non-React subscription — we would really like to have this, for config in particular but also in general (things like resizing and other state changes, for example). There are innumerable cases where we need to coordinate operations in a complicated way and relying on just React hooks can get very tricky.

widget configuration limits — mostly our widgets would fit comfortably in 32k, but there is one case that doesn’t: in one gadget (and potentially others in the future), users can insert custom content in ADF format. It’s very easy for that to take up much more space, even for smallish amounts of content (the markup can be heavy for e.g. a table with many links or icons). Our gadgets currently split such large configurations in multiple properties, as needed.

Part of the problem is just the limit (I would put it closer to 1MB than just 32k, even though in practice it would be rare to get so high), and part of it is the way it is split into multiple dashboard item properties (it’s not clear yet how those would be migrated).

Dashboard item properties — it would be good to have the equivalent for widgets too. We use these, for example, to keep track of JCMA migration metadata. It’s very convenient because the properties are attached to the gadgets themselves, which means that deleting the gadget cleans up the metadata automatically (plus all the necessary permissions checks are included), which can not be achieved with any other method.

Config persistence & reading — it would be very useful to have R/W access via a “free” API that can be accessed from all views at all times (depending on user permissions), including from the background scripts. We route a lot of operations through background scripts, and having all the operations bound to the widget state transitions makes things very awkward and requires a lot of extra back-and-forth communications which often introduces extra delays.

Edited just informational:

Steps: Open a configured widget, and produce a config error then click Jira’s Save button in the edit config.

Expected: The drawer stays open with the inline validation error, allowing correction or Cancel.

Actual: The saved configuration is preserved, but the entire edit drawer is replaced by an error illustration. The form, Save, Cancel, and Close controls disappear. Reloading restores the dashboard.
see here marked in red!

Resolved by:

Our testing shows that widgetEdit.onSaveError (documented here) must be registered to keep the edit drawer usable when onProductSave rejects—even if the error handler only logs the error. Without it, Jira replaces the drawer with an error illustration.

Hi @AllanahMiller, I’ve been testing dashboards:filter and wanted to share some feedback.
For our app, it would be valuable to support a Boolean filter as a single toggle button. We also use dropdown filters, so we need the flexibility of resource-based filters alongside the one-click interaction shown in the function-handler example.
Ideally, the entire button would indicate its state: no color when inactive, grey when active by default, and blue when activated for the current dashboard session (see image). Users could toggle it with one click and see its state immediately. A count and a popup add unnecessary steps for this use case.

booleanFilter

I also noticed that the function handler was not invoked during my test. Since we need dropdowns, this is less important for us, but I wanted to mention it.

Hi
We are migrating from gadgets to widgets, got issue:
**
requestRemote fails in a dashboards:widget Custom UI module: signInvocationTokenForUI returns 500**

In a dashboards:widget (new Jira dashboards), requestRemote('forge-remote', …) fails with “Failed to generate FIT token”. The signInvocationTokenForUI mutation returns success: false with GenericMutationErrorExtension, statusCode: 500, “An unexpected error occurred”. Just before that, avp_signForgeContextToken succeeds for the same widget.

The same remote and the same requestRemote call work from jira:globalPage and jira:adminPage in the same app.

Workaround: giving the widget resolver: endpoint: <key> and calling the same remote with invokeRemote works.

A jira:dashboardGadget opens in its edit view when a user adds it, and Atlassian’s own widgets open their editor when added. A Forge dashboards:widget shows only its preview in the Add widget panel, and the user must click Edit widget before setting it up. Could dashboards:widget get an option to open its edit view when it is added, such as a manifest flag on the edit entry point or a bridge call? It would keep the experience customers know from their classic gadgets, which matters as those gadgets migrate.

Hi dashboards team,

Exporting a new dashboard to PDF (⋯ → Export → PDF) shows every Forge app widget as a broken link card (“We couldn’t load this link for an unknown reason”) instead of the widget. Atlassian’s own charts export fine. We reported it with steps and screenshots in ECOHELP-183631.

Is exporting Forge widgets planned, or an API for a widget to supply content for the export? Until then, a neutral “this widget can’t be exported” placeholder would read better than the raw iframe address.

Other vendors: do your widgets export?

Hi dashboards team,

Adding our case to Raimundas’s question above (post 28), also raised with developer support as ECOHELP-183858.

Our reporting widgets count work items with JQL. When a dashboard is filtered, Atlassian’s own widgets follow the filter bar, but an app widget receives the filter only as extension.filters, an undocumented structure with no JQL. Apps can apply only the filters they manage to reverse-engineer, so the same dashboard shows conflicting numbers, and customers read that as an unreliable app, not a platform gap. For reporting apps accuracy is the product, so we see this as a blocker for reliable reporting on the new dashboards.

Documenting the format alone would not solve it: some filters, such as SLA name, have no JQL equivalent, and every vendor would still maintain its own mapping, which can break with each new filter.

Could you provide one of these?

  1. The active filter as JQL in the widget context.
  2. A supported filter-to-JQL converter in @forge/dashboards-bridge.
  3. The work items the filter selects.

Thank you!

Hi @AleksandarSavovski

The reason why Atlassian is not exposing the filters as JQL is because these filters are running against the Atlassian data lake, not the Jira database. While you might be able to convert some filters to a JQL equivalent, the results are never going to be the same as what built-in widgets will show, if nothing else because of data lake consolidation latency.

Also, the data lake is not built to return individual Jira work items but aggregated results.

Thanks David. We checked this on a test site. With the dashboard filtered by space, status and priority, the built-in “Work item list” widget returned exactly the work items the equivalent JQL returns, every time. The metrics model the dashboard loads also maps 23 Jira filter dimensions to JQL fields (project_name to project, issue_status to status, and so on).

So the platform already has what apps need. Either the filter as JQL or the selected work items in the widget context would solve it; aggregated results would not, as most of our widgets compute from each work item’s history, work logs and sprints.

Without it, reporting widgets will disagree with the filter bar and lose customers’ trust, and vendors will keep their reports in their own apps rather than as “first-class citizens alongside Atlassian’s native charts”. Getting this right decides whether data reporting apps belong on the new dashboards.

Can widgets get the ids of the selected work items, directly or as a filter usable in JQL (for example filter = 12345, defined as id in (…))?