Hi,
The concept of schema from a Jira Assets (Cloud) point of view and from a Jira external import point of view is confusing.
Scenario
- Create a new Asset schema via the GUI. e.g "Henry's Sandbox", code: HSAND
- With the GUI I create an object in that HSAND schema called : "Asset Owner"
- I add 3 objects items: 'company', 'BYOD', '3rdparty'
- I create an External import, generate a token
- The import script use the token and MUST have a 'schema' and 'mapping' JSON file
- In that schema/mapping JSON file, It defines a new object called "Laptop" that contains will contain a name, a S/N attribute AND a reference to the "Asset Owner" object created via the GUI to state if it's a company, personal or 3rd party laptop.
Issues/questions:
- I am confused by the concept of schema (HSAND) and the "schema": required for external import (aka API imports). Because on import it will create the "Laptop" object using the object definition from the "JSON "schema" into HSAND schema. A schema in a schema?
- Finally, my real issue is that if I understand correctly, I cannot set a reference to the "Asset Owner" objects because they aren't part of the same "schema"?
- Does the concept of external import mean we can only import everything and ideally nothing should be created via the GUI because there won't be anyways to reference it?
Note: I am NOT talking about cross-gui-schema access. e.g: a HSAND schema object trying to reach a FOOBAR schema object. Both created via the GUI. I am only trying to understand the concept of schema relationship and limitations between a GUI created schema (workspace) and the JSON "schema": attribute.