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.