How can i enable the "Edit mapping" feature on a custom asset import app

I started an import project from forge create following the Use Async Events API to queue jobs to import objects into Assets tutorial. But when i deploy it, and open the Edit mapping toggle, it says:

This mapping has been predefined by and no new object or attribute mappings may be added. Changes to this mapping may result in unexpected behavior.

However, i want to allow mappings in similar to the way CSV or JSON does. Is it possible to make this happen in a custom import app?

My current workaround is to have a text field in the Configure app dialog instead, but this is way less user friendly. It would be nice to just have the normal mapping form be available.

(@ibuchanan you asked to be tagged for issues with assets-import so here you go…)

@LucasTheisen,

Yes, the jiraServiceManagement:assetsImportType.resource setting allows your app to provide a front-end to the mapping. That UI code must PUT to /jsm/assets/workspace/${workspaceId}/v1/importsource/${importId}/mapping. In my sample app there is a UI and it does submit the mapping through a resolver, even if that UI is not interactive.

@ibuchanan , that lets me customize the Import data → Configure app, but i want to provide a form in the Edit mapping

What i am looking for is the same mapping available in the default CSV importer:

@LucasTheisen,

Thanks for the visual. Right now, there’s no way to use or extend that part of the UI with Forge.