Insight External Import

Hi all,

I am trying to trying to develop some external imports to Insight Cloud. I have successfully import data to new object types as well as existing types using the existing documentation and the json scheme mapping 2021_09_15.

I would like to know if there is some other specifications to apply in the mapping scheme json or in the data json so I can import objects that contains references to other objects in their attributes. Any sample json or further documentation links would be appreciated.

Kind regards

[luis@fedora ldap]$ ./import.sh
INFO: Token verification:
:heavy_check_mark: Status link: https://api.atlassian.com/jsm/insight/workspace/
:heavy_check_mark: Import start link : https://api.atlassian.com/jsm/insight/workspace/
:heavy_check_mark: Mapping submit link : https://api.atlassian.com/jsm/insight/workspace/
INFO: Put schema and mapping configuration
:heavy_check_mark: Put schema and mapping configuration
INFO: Kick off an import
:heavy_check_mark: Kick-off import result : success…
:heavy_check_mark: - Submit progress url : https://api.atlassian.com/jsm/insight/workspace/
:heavy_check_mark: - Submit results url : https://api.atlassian.com/jsm/insight/workspace/
:heavy_check_mark: - Get execution status : https://api.atlassian.com/jsm/insight/workspace/
:heavy_check_mark: - Cancel url: https://api.atlassian.com/jsm/insight/workspace/
INFO: Get Status:
:heavy_check_mark: Import status : RUNNING
:heavy_check_mark: - Get execution status : https://api.atlassian.com/jsm/insight/workspace/
:heavy_check_mark: - Cancel url: https://api.atlassian.com/jsm/insight/workspace/
INFO: Submit dataset
:heavy_check_mark: success
INFO: Submit complete
:heavy_check_mark: success
INFO: Get Status:
:heavy_check_mark: Import status : IDLE

1 Like

Hi Luis,

We just released support for object references. This backwards compatible change has been added to the 2021_09_15 schema, so you can continue to use it while adding object reference attributes to your objects.

See our documentation here: External Imports - Schema and mapping

Kind regards,
Roger (dev @ Insight)

1 Like

thanks for remember it!

I get this error when fetching the rest point for external imports from a forge app.

INFO 15:08:40.647 a50516d543e2ad4b FetchError: request to https://api.atlassian.com/jsm/insight/v1/imports/info failed, reason: URL not included in the external fetch backend permissions: https://api.atlassian.com/jsm/insight/v1/imports/info. Visit go.atlassian.com/forge-egress for more information.

Do I need to add

  external:
    fetch:
      backend:
        - "https://api.atlassian.com"

or maybe there is another way to code it?

Thank you, Luis

Hi,
we developed a Java Tool for Insight to use the external data import API. You can read more about this here: Jira Service Management