You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I have a schema that has already been implemented. I don't need to modify it. I am trying to execute an external import but I'm stuck on what the required JSON is. I'm assuming that I need to include the $schema keyword and the target schema make but the schema dialect definition also requires the schema description and objectTypes keywords. This seems like overkill if I'm not changing the schema.
I searched around and found https://community.atlassian.com/t5/Jira-Service-Management/insight-external-import-how-to-patch-import-mapping-with/qaq-p/2102647 which indicates that a PATCH call can be made including only the changes to the schema but all of the mappings. Given this I tried including an empty objectTypes but the call fails, stating that the objectTypes is not configured.
This seems like a very standard use case so maybe I'm missing something basic?
Eh so I kinda figured this out. If the schema has already been created and you want to just import data add the object type to the schema and mapping. So something like:
"name": "Virtual Machine",
"objectTypeName": "Virtual Machine",
Not sure if this the correct way but it works when sending a PATCH. I can't get it to work with a PUT so my assumption is that PATCH is the method that must be used.