Object Schema Import

Object Schema Import

To import an Object Schema definition, navigate to:

  • Insight -> Configure -> Import / Export
  • Select: Object Schema Import

After importing an object schema, you must reindex Insight.

(warning) For Importing an Exported object schema created with Insight, version prior to: 4.5.0, see the bottom of this page for instructions.

Configure the Object Schema Import

(info) The system to Import to, MUST have the the same Insight "Name" Attribute setting as the system that the Object Schema was exported from. This is the standard case and should therefore not be a problem.


FieldsDescription
File name

A list of files (.zip) showing the file names of previously exported object schemas made available for Import.
(warning) In order to make a previously exported object schema available for import, that exported file (zip) must reside in the directory shown in the description.

Mandatory
NameThe name of the new object schema that will be created by the import. The name can not be the same as any existing object schema name.Mandatory
KeyThe key for the new object schema. The key can not be the same as any existing object schema key.Mandatory
DescriptionThe description for the new object schema.
Import objects
  • "Yes" (default): The objects included (if any) in the file selected for import will be be created in the new object schema.
  • "No": Only the object schema definition (Object Types, Object Type Attributes etc.) will be created for the import.

Include

Only active if "Import objects" is selected to "Yes", otherwise this option is disabled.

  • Attachments: When selected, the Attachments (if any) will be imported to the new object schema.
  • Object Avatar: When selected, the Avatars that exists for individual Objects (if any) will be imported to the new object schema.



PasswordIf the file chosen for the import is protected by a password, then that password must be provided in order to perform the import.

Importing an Exported object schema created with Insight, version prior to: 4.5.0

If you have exported an object schema from an earlier insight version by using the Object Schema -> Export functionality (illustrated below).

You will have to process the file manually before importing it to Insight. What you need to do is;

  1. Base64 decode the file and rename the file to schema.xml

    base64 -D -i export.xml.base64 -o schema.xml

  2. Zip the schema.xml file, the zip file can have a name of your choosing. You will have to include a property file specifying your insight version as well as the amount of objects in your schema (if no objects are included use the value one (1) as the total_objects_in_export). See the example of the file below. 

    export-details.properties Example
    #Mon Nov 14 11:07:31 CET 2016
    require_password=false
    insight_version=<your.version>
    total_objects_in_export=1
    include_objects=true
    zip import.zip schema.xml export-details.properties
  3. Put the zip-file in your JiraHOME/import/insight folder
  4. Import the file as described above