Learn how to synchronize options with a data source
Let’s test how objects of a JSON collection can be used as options in a select list. We’ll import a list of users from a JSON file. Then, we’ll display them in Jira in a Bundled Fields subfield of the Select list (single choice) type.
Dynamic Forms for Jira - Bundled Fields Data Sources: Configuration
Click Test connection.
After receiving a confirmation, click Save connection.
Dynamic Forms for Jira - Bundled Fields Data Sources: Test connection with no additional parameters
Select a JSON path to be mapped > root - COLLECTION.
Provide an alias name for your JSON path > Users.
Select the option ID (the attribute that identifies the object on the list) > id - NUMBER.
Select the option > name - STRING.
Click Add mapping.
Click Continue.
Dynamic Forms for Jira - Bundled Fields Data Sources: Output mapping
Click Save to confirm creating the data source.
Dynamic Forms for Jira - Bundled Fields Data Sources: Save configuration
Result
The data source is added to the Data Sources list.
Dynamic Forms for Jira - Bundled Fields Data Sources: Result
Note
Options get automatically synchronized with the data source right after establishing the connection. Learn more about possible ways of further synchronization below.
Connecting the data source
Steps
Select Bundled Fields from the Dynamic Forms app navigation.
Add a subfield that will contain your list of users > type: Select list (single choice), name: External guests.
In the three dots menu, click Connect data source.
Dynamic Forms for Jira - Bundled Fields Data Sources: Connect the data source
Choose your data source > External guests.
Choose a list from your data source > Users.
Click Save.
Save the changes to your Bundled Fields configuration.
Dynamic Forms for Jira - Bundled Fields Data Sources: Synchronization of options
Result
Your data source is connected to the subfield. Options in the select list synchronize with the JSON collection of users:
Dynamic Forms for Jira - Bundled Fields Data Sources: Connected subfield
Note
The synchronization happens after saving changes to the entire Bundled Fields configuration.
Displaying the data source
Add the newly configured Bundled Field to your chosen screen and it will display the list of external users as a select list:
Dynamic Forms for Jira - Bundled Fields Data Sources: External data displayed in a Jira select list
Synchronization
You can choose from three ways of synchronizing options in subfields connected to a data source:
No synchronization (default)
Manual synchronization
Automatic synchronization
No synchronization
By default, the options won’t be synchronized unless you take an action. This prevents overwriting the options unexpectedly and any other errors caused by changes in the external data source, while the data is already displayed in Jira issues.
Manual synchronization
Click Synchronize under the subfield type to update the subfield with the current state of your data source:
Dynamic Forms for Jira - Bundled Fields Data Sources: Manual synchronization of options
Note
This action will only synchronize the options once. To set up periodic updates, turn on the automatic synchronization.
Automatic synchronization
You can configure your subfield to be synchronized once a day.
In order to enable it, go to Bundled Fields > Settings and turn on the toggle next to Automatic synchronization:
Dynamic Forms for Jira - Bundled Fields Data Sources: Automatic synchronization of options
If you can’t find the answer you need in our documentation, raise
a support request.
Include as much information as possible to help our support team resolve your issue faster.