Greetings,
I need to import a lot of issue updates and changes on a regular basis remotely. I originally intended to use csv files but this is not possible with jira. I am trying with json files. I have successfully exported the issues from a project but am not able to import issues to a project. I have tried with exactly the file jira exported using the "jira-importers-plugin" and curl.
I exported all the issues for a project using
curl -H "Authorization: Basic xxxxXXxxXXxxXXxXxxXXx=" -X GET -H "Content-Type: application/json" https://our-server.adaptavist.cloud/rest/api/2/search?jql=project="ID" --output capture.json
Without altering capture.json I tried
curl -H "Authorization: Basic xxXXxxXxxXXxxXxXXxx=" --data @capture.json -H "Content-Type: application/json" https://our-server.adaptavist.cloud/rest/jira-importers-plugin/1.0/importer/json
And got this error
{"errorMessage":"Cannot parse JSON message: Unrecognized field \"expand\" (Class com.atlassian.jira.plugins.importer.sample.SampleData), not marked as ignorable\n at [Source: java.io.StringReader@50bba888; line: 1, column: 59918] (through reference chain: com.atlassian.jira.plugins.importer.sample.SampleData[\"expand\"])"}
Normally I expect to use files I exported as templates for files I intend to import.
Does anyone know offhand what I am missing?
Thanks,
Lonn
Facing the same issue. Requesting Atlassian support team to suggest where this is going wrong.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.