JSM Form load time is slow
Platform Notice: Cloud - This article applies to Atlassian products on the cloud platform.
Summary of Issue
When a customer tries to fill out a Form configured for the Customer Portal, Form Field drop downs are taking upwards of 5 seconds to populate the values related to the dropdown Form field.
Environment
The customer is using Forms for some of their Request Types, which include both Form fields linked to Jira Custom Fields and Form Fields with Data Connections.
Diagnosis
This is ultimately expected behavior for Forms as we don't have control over Data Connection Performance since it is an external call from a different application into the JSM Data Connections.
Cause
This issue is caused because the performance of any Form field (whether connected to a Data Connection or not) will be affected by this when the Form loads. For example, if you were to gather a HAR log or view Developer Tools for the web responses of the Form/Webpage you would see a call to `/api/3/portal/2/requesttype/11111/formchoices`
which takes many seconds to load. This single endpoint is used to fetch all the data for the Data Connection(s) + options for linked Jira fields. So in this scenario, we will need to wait for the Data Connections to fully load into the page before any dropdown Form field options are available.
Solution
The only way to resolve this performance issue with Forms is to remove the Data Connections from the Form.
Related Feature Request
JSDCLOUD-13032 - Getting issue details... STATUS