{
"fields": [
{
"summary": "Foo",
"description": "Bar.",
"issuetype": {
"name": "Task"
},
"labels": [
"FooBar"
],
"project": {
"key": "UQ"
}
}
]
}
Whenever I try to import the above in https://mysite.atlassian.net/secure/admin/ExternalImport1.jspa it fails.
You can with the above json it's formatted fine, but then when I try and upload it I get:
2023-02-03 19:59:49,224 INFO - Import started by xxxxxxxxxxxxxxxxxxxxxxxxxxxxx 7 using com.atlassian.jira.plugins.importer.sample.SampleDataBean
2023-02-03 19:59:49,234 INFO - ------------------------------
2023-02-03 19:59:49,234 INFO - Importing: Users
2023-02-03 19:59:49,234 INFO - ------------------------------
2023-02-03 19:59:49,234 INFO - Only new items will be imported
2023-02-03 19:59:49,237 INFO - 0 users associated with import. All of them imported as inactive, this can be changed after import in User Access step.
2023-02-03 19:59:49,237 INFO - ------------------------------
2023-02-03 19:59:49,237 INFO - Finished Importing : Users
2023-02-03 19:59:49,237 INFO - ------------------------------
2023-02-03 19:59:49,237 INFO - 0 users successfully created.
2023-02-03 19:59:49,240 INFO - Retrieving projects...
2023-02-03 19:59:49,254 INFO - ------------------------------
2023-02-03 19:59:49,254 INFO - Importing: Issues
2023-02-03 19:59:49,254 INFO - ------------------------------
2023-02-03 19:59:49,254 INFO - Only new items will be imported
2023-02-03 19:59:49,260 INFO - 0 issues successfully created
2023-02-03 19:59:49,262 INFO - ------------------------------
2023-02-03 19:59:49,262 INFO - Finished Importing : Issues
2023-02-03 19:59:49,262 INFO - ------------------------------
2023-02-03 19:59:49,268 INFO - ------------------------------
2023-02-03 19:59:49,268 INFO - Importing: Issue Links & Subtasks
2023-02-03 19:59:49,268 INFO - ------------------------------
2023-02-03 19:59:49,268 INFO - Only new items will be imported
2023-02-03 19:59:49,271 INFO - ------------------------------
2023-02-03 19:59:49,271 INFO - Finished Importing : Issue Links & Subtasks
2023-02-03 19:59:49,271 INFO - ------------------------------
2023-02-03 19:59:49,272 INFO - ------------------------------
2023-02-03 19:59:49,272 INFO - Importing: Issue remote links
2023-02-03 19:59:49,272 INFO - ------------------------------
2023-02-03 19:59:49,272 INFO - Only new items will be imported
2023-02-03 19:59:49,274 INFO - ------------------------------
2023-02-03 19:59:49,274 INFO - Finished Importing : Issue remote links
2023-02-03 19:59:49,274 INFO - ------------------------------
Am I doing it properly?
Hi @weskay
Welcome to the Atlassian community!
Looks like the format for JSON file input is not valid as the log messages say that 0 issues were imported.
Can you refer to this article about how to create the JSON file and use it for importing the issues and try if that helps?
https://support.atlassian.com/jira-cloud-administration/docs/import-data-from-json/
Thanks,
Vamsi
Thanks so much, can you tell me exactly what is wrong with the json? As I followed the syntax and structure of the examples, and the example you have also supplied is for creating a project without tasks:
{
"projectKey": "UQ",
"issueType": "Task",
"tasks": [
{
"taskName": "Update Website Content",
"description": "Update the content on the company website to reflect the latest product offerings.",
"assignee": "John Doe",
"priority": "High",
"status": "In Progress",
"dueDate": "2022-12-31",
"estimatedTime": "5 hours",
"labels": ["website", "content", "update"]
},
{
"taskName": "Develop Mobile App",
"description": "Develop a mobile app for the company to improve customer engagement.",
"assignee": "Jane Doe",
"priority": "Medium",
"status": "Open",
"dueDate": "2023-01-15",
"estimatedTime": "10 hours",
"labels": ["mobile", "app", "development"]
},
{
"taskName": "Create Marketing Campaign",
"description": "Create a marketing campaign to promote the company's latest product offerings.",
"assignee": "John Smith",
"priority": "Low",
"status": "To Do",
"dueDate": "2022-12-01",
"estimatedTime": "7 hours",
"labels": ["marketing", "campaign", "promotion"]
}
]
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.