-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Low
-
Component/s: Assets - Data Manager - UI
-
Severity 3 - Minor
Issue Summary
When a Jira Service Management Customer Portal request-create form includes a Forge Custom UI jiraServiceManagement:portalRequestCreatePropertyPanel module, the native Send button is active and clickable before the Forge panel has finished loading and rendered its fields.
On slower machines or networks, users can click Send before the Forge panel has initialized. When this happens, the request is created without the panel's data, resulting in empty or incomplete JSM requests.
The root cause is that the Customer Portal has no mechanism to detect that a Forge panel is ready before enabling the Send button. The Forge platform already provides this capability via view.emitReadyEvent() and the emitsReadyEvent manifest field (used by other module types such as global:ui), but the Customer Portal's portalRequestCreatePropertyPanel flow does not consume it. The complete fix requires changes on both the portal side (Aurum team) and the app developer side.
Steps to Reproduce
Note: This issue is intermittent. It is more likely to occur on slower machines or throttled network connections. Controlled reproduction requires conditions that simulate extended Forge panel load times.
Step 1 - Navigate to a JSM Customer Portal request-create form that has a jiraServiceManagement:portalRequestCreatePropertyPanel Forge Custom UI module installed.
Step 2 - On a slow network or lower-end device, observe the page immediately after it loads. The native Send button is active before the Forge panel iframe has loaded.
Step 3 - Click Send before the Forge panel has finished loading and rendered its fields.
Step 4 - Observe that a JSM request is created without the panel's form data attached.
Expected Results
The native Send and Cancel buttons should remain disabled until the Forge Custom UI panel signals readiness. The complete fix has two parts:
- Portal side : When the extension definition includes emitsReadyEvent: true, the Customer Portal should disable Send and Cancel and listen for the ready event from the Forge renderer before re-enabling them - consistent with how global:ui and other Forge modules handle this via GlobalModuleRenderer.
- App side : App developers should add emitsReadyEvent: true to their portalRequestCreatePropertyPanel module manifest and call view.emitReadyEvent() from their app code once all fields are loaded and the form is ready to accept user input.
Actual Results
The Send button is active from the moment the portal renders, regardless of whether the Forge panel has loaded.
Observed timings from a slow-network capture (representative of the worst case; under normal conditions the gap is approximately 2-4 seconds):
| Moment | Time from page load |
|---|---|
| Send button active | immediately |
| Portal learns a Forge panel is present (fetch-extensions returns) | +17 s |
| Forge panel iframe finishes loading | +21 s |
| Forge panel fields visible to user | +31 s |
Send was clickable across all 31 seconds. Clicking it at any point before the panel was ready created a request with no panel data.
No exception is thrown and no error appears in Forge logs or platform traces. The failure is silent - the request is created successfully from the portal's perspective, but the Forge panel's form data is absent from the request payload.
Workaround
A partial workaround is available for app developers while the portal-side fix is pending.
In the Forge Custom UI entry point (index.js), call view.submit({ fields: [], isValid: false }) immediately at bootstrap, before view.getContext(), dynamic imports, or any async initialization:
js
{{import
from '@forge/bridge';view.submit(
{ fields: [], isValid: false }).catch((err) =>
{console.error('Failed to set initial invalid state', err);});// Continue with existing view.getContext() and mount logic}}
This reduces the race window by signalling an invalid state as soon as the app bundle executes. This does not fully resolve the issue. The gap between page load and when the app bundle can execute (approximately 1-2 seconds under normal conditions) cannot be covered by app-side code. On very slow connections the iframe itself may take longer than the portal's current 10-second hold to load, reopening the window.
The complete fix requires portal-side changes to support the emitsReadyEvent mechanism for this module type. Once the portal change ships, app developers will also need to add emitsReadyEvent: true to their module manifest and call view.emitReadyEvent() from their app code. Details of the required app changes will be added to this ticket once the portal change is complete.