Hello Atlassian Community,
We are in the process of importing multiple objects from an external source into Assets. To achieve this, we are utilizing the external import functionality and have been following the guidelines provided here: External Imports - Schema and Mapping.
We would like to inquire if there is a method to leverage existing schema mappings that have been defined through previous JSON imports or CSV imports via the web interface. Specifically, is there a way to reuse these mappings to streamline our current import process?
Additionally, are there any tools or features available that can dynamically generate the required mapping configurations, thereby reducing the need for manual setup?
We attempted to retrieve the existing schema and mapping using the following REST API call:
bash
CopiaModifica
curl --request GET \
--url 'https://api.atlassian.com/jsm/assets/workspace/{workspaceId}/v1/importsource/{importSourceId}/schema-and-mapping' \
--header 'Authorization: Bearer <access_token>' \
--header 'Accept: application/json'
However, this request returns only the schema without the mapping configuration. Is there a way to obtain both the schema and its associated mapping via the API?
We appreciate any insights or guidance you can provide on this matter.
Thank you.