Forums

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

When trying to import json for tasks, I'm getting a "Finished Importing : Issue remote links"

weskay
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 3, 2023
{
"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?

1 answer

0 votes
Vamsi Kandala
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 3, 2023

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

weskay
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 3, 2023

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"]
}
]
}

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events