Learn how to import and export the Dynamic Forms configuration
You can import a configuration of Fields Visibility from a JSON file. This is helpful when importing configuration to another Jira instance.
To import or export a Fields Visibility configuration, log in as a user with the Jira Administrators global permission.
The import option allows for adding a configuration saved in a JSON file. You can add the imported configuration to the existing one (no settings will be removed). It also allows you to remove an existing configuration and replace it with a new one imported from the file.
The view generated after filling out the form is only a preview. You will be able to edit it. At the end, remember to publish the imported configuration (you can also discard it).
To import the configuration:
Go to Jira Administration > Manage apps.
Select Fields Visibility from the Dynamic Forms app navigation.
Select Import configuration.
The Choose import type dialog box appears.
Click Next.
The Import settings dialog box appears.
Select how you want to match custom fields, contexts, and options.
If you import it from the same Jira instance as the target one, use the Match by ID option. If you have two different instances of Jira, it would be impossible to match custom fields from a JSON file by IDs. Each instance has different custom field’s numbering, so Jira can’t match them. The solution is to create Dynamic custom fields with the same names in second instance and import the Dynamic custom field’s configuration from the first Jira instance. Then, the system will match the Dynamic custom fields by their name and easily import the configuration. If your target Jira instance is different, use the Match by name option.
Drag a JSON file with the configuration or click Browse and select the file.
Click Go to preview.
Check if the configuration is correct. You can add new related fields or modify existing ones.
Configuration is imported from JSON and saved on your Jira instance.
You can export your configuration of Fields Visibility to a JSON file. This is helpful when importing a configuration to another Jira instance or creating a backup.
To export the configuration:
The configuration is exported to a JSON file that is saved on your computer.
A file naming convention provides the following elements:
For example: DF_30_07_2018_15_02.json
The app provides two methods to export a Fields Visibility configuration to a JSON file automatically:
You can use following scripts while using ScriptRunner or any other similar app:
import com.onresolve.scriptrunner.runner.customisers.PluginModule
import com.onresolve.scriptrunner.runner.customisers.WithPlugin
import com.intenso.jira.plugin.dynamicforms.api.export.ExportConfigurationService
import org.codehaus.jackson.map.ObjectMapper;
@WithPlugin("com.intenso.jira.plugin.dynamic-forms")
@PluginModule
ExportConfigurationService exportService;
exportService.exportAsJsonString();
import com.onresolve.scriptrunner.runner.customisers.PluginModule
import com.onresolve.scriptrunner.runner.customisers.WithPlugin
import com.intenso.jira.plugin.dynamicforms.api.export.ExportConfigurationService
import org.codehaus.jackson.map.ObjectMapper;
@WithPlugin("com.intenso.jira.plugin.dynamic-forms")
@PluginModule
ExportConfigurationService exportService;
exportService.exportToJsonFile("/var/atlassian/application-data/jira/tmp/df-export.json");
If you can’t find the answer you need in our documentation, raise a support request.