Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Why does jira with the json importer not import the very same file it exported

Lonn James Holiday
Contributor
June 4, 2019

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

1 answer

0 votes
AMP Admin Email Account November 19, 2023

Facing the same issue. Requesting Atlassian support team to suggest where this is going wrong.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events