Bitbucket modules
Common modules
Compass modules
Confluence modules
Jira modules
Jira Service Management modules

Jira Service Management Assets Import Type

The jiraServiceManagement:assetsImportType module displays a modal that allows users to configure their Forge-based imports with information such as login details or configuration information for their app.

The modal appears when a user selects an object schema within Assets, then selects Schema configuration, then selects Import, then selects their import type, then selects Configure App in the dropdown.

The module also contains functions for optional use - onDeleteImport, startImport, stopImport, importStatus.

The content of the module is rendered below the text Configure {Import Structure Name} and above the Save Configuration and Cancel buttons.

This module can be used in Jira Service Management.

See the AssetsImportType component documentation for more details.

Unlicensed user access: This module does not support interaction with anonymous users, customer accounts, or unlicensed accounts.

Example of an Assets Import Type

Properties

PropertyTypeRequiredDescription
key

string

Yes

A key for the module, which other modules can refer to. Must be unique within the manifest.

Regex: ^[a-zA-Z0-9_-]+$

functionstringA reference to the function rendering the UI.

Regex: ^[a-zA-Z0-9_-]+$

descriptionstringA description of the Assets Import Type that displays under it.

Regex: ^[a-zA-Z0-9_-]+$

titlestringYesThe name of an Assets Import Type, which is displayed on each of the import structure cards. They live on the Imports tab of each Object Schema in Assets.
iconstringYes

The icon displayed next to the title.


For custom UI and UI kit apps, the icon property accepts a relative path from a declared resource. Alternatively, you can also use an absolute URL to a self-hosted icon. See Icons for more information.

If no icon is provided, or if there's an issue preventing the icon from loading, a generic app icon will be displayed.

onDeleteImport{ function: string }Contains a function property, which is executed on deletion of an Assets Import Type.

Regex: ^[a-zA-Z0-9_-]+$

startImport{ function: string }YesContains a function property, which is executed when an import of this Assets Import Type is started.

Regex: ^[a-zA-Z0-9_-]+$

stopImport{ function: string }YesContains a function property, which is executed when an import of this Assets Import Type is cancelled.

Regex: ^[a-zA-Z0-9_-]+$

importStatus{ function: string }YesContains a function property, which is executed when Imports UI is loaded to display the status of the import.

There are two status enums that can be returned currently,{ status: "NOT_CONFIGURED" } or { status: "READY" }

Regex: ^[a-zA-Z0-9_-]+$

Extension context

UI kit

PropertyTypeDescription
typestringThe type of the module.
importIdstringThe id of the Assets Import Type.
workspaceIdstringThe id of the Assets workspace.

UI kit 2

This module now has support for UI Kit 2 (preview) for faster user experiences and to access additional React features.

For more information on all the supported modules, see the Supported products and their modules section.

Rate this page: