unable to bulk update sub-task for task using csv import
Asked by akshaybhange:

I am trying to update the sub-tasks created for the task using csv file via admin panel.   

I've tried multiple variations with issue key, issue id, parent.   

I get following error :

"while updating issues have been skipped because they already exist in destination projects."

In Jira settings --\> System --\> Import and Export --\> External System Import  

my CSV headers are:

Issue key, Summary, Issue Type, Parent, Issue id, \& some custom fields


Answers:
author: Bill Sheboy
body: Hi [@akshaybhange](/t5/user/viewprofilepage/user-id/5565967) -- Welcome to the Atlassian Community!

What type of project is this: company-managed or team-managed? You may find that information in the project list or at the bottom-left of the page expanding area when viewing the project.

There is a known defect for team-managed projects where sub-tasks cannot be updated using a CSV import. You may watch / vote for this defect to see progress: <https://jira.atlassian.com/browse/JRACLOUD-81917>

Kind regards,  
Bill

comments: author: akshaybhange
body: Hi [@Bill Sheboy](/t5/user/viewprofilepage/user-id/1685313) ,   

I checked the project, I don't see "team managed" text on the left sidebar, I guess my project is company managed.   

<br />

<https://support.atlassian.com/jira-service-management-cloud/docs/how-can-i-tell-if-im-in-a-classic-and-next-gen-project/>


author: akshaybhange
body: Thanks, I noticed It is a team managed project.


author: John Funk
body: Hi [@akshaybhange](/t5/user/viewprofilepage/user-id/5565967) - Welcome to the Atlassian Community!

Can you share the header row of your spreadsheet CSV?

comments: author: akshaybhange
body: my CSV headers are:

Issue key, Summary, Issue Type, Parent, Issue id, \& some custom fields


author: John Funk
body: Very good - thank you. Now, what are you trying to update for the Sub-task?


author: akshaybhange
body: I'm trying to update some of the custom fields I have created for sub-tasks.


author: John Funk
body: Okay - you shouldn't need the parent if you are just updating field for the Sub-task.

Put the key of the sub-task in the Issue Key field. Leave off the Issue ID and Parent fields - you should not need them.


author: akshaybhange
body: got an error,   

"None issues and projects imported.  
Issue can't be created as issue type is sub-task but parent issue key or id is not specified"  

<br />

Sample CSV : ![Screenshot 2024-08-12 182035.png](https://community.atlassian.com/t5/image/serverpage/image-id/341241i62B2EA1BD91E3646/image-size/large?v=v2&px=999 "Screenshot 2024-08-12 182035.png")  
Issue key, Summary, Issue Type, custom field  
KAN-2, SubtaskSummary, Subtask, customValue


author: John Funk
body: Oh, sorry, yes you do not need the Issue Type field either since these are just updates and not creates.


author: akshaybhange
body: [@John Funk](/t5/user/viewprofilepage/user-id/7148) didn't work   

got another error :

"Unexpected failure occurred. Importer will stop immediately. Data may be in an unstable state: Failed to remove subtasks \[KAN-2\] parents. A parent of a subtask cannot be removed."


author: akshaybhange
body: should I be using issue ID instead of Issue key.


author: John Funk
body: No, Issue Key is correct. Maybe it thinks you are clearing the Parent field for some reason since it is not mapped. So I try adding the Parent column in with the existing value of the Key for the parent.


author: akshaybhange
body: Got 2 issues here. if I add parent id (for eg. 10000) it is asking for issueID \& Issue Type.   

If I provide both of these then it'll skip the issues.   
Feels like a loop :(

![Screenshot 2024-08-12 191751.png](https://community.atlassian.com/t5/image/serverpage/image-id/341266iE6B7201B009B92C5/image-size/large?v=v2&px=999 "Screenshot 2024-08-12 191751.png")


author: John Funk
body: The Parent should be a Key like ABC=123, not the ID.

Can you post a screenshot of the first row of your CSV, along with the header row?

Also, can you post a screenshot of the mappings in the import tool?


author: akshaybhange
body: CSV:   

Issue key,Parent,Summary,Order ID,SIL SKU,Qty,Product Desc,Order Status,Courier,AWB Number,Dispatch Date,Delivered to,Delivery date  
KAN-2,KAN-1,Proper Sub Task 1,1,NUPI - 1,1,Apple Iphone,Delivered,Bluedart,12345678,15-Jul-24,Person 1,18-Jul-24  

<br />

Mappings: I've not included some of the custom fields which are not relevant:   

![Screenshot 2024-08-13 124726.png](https://community.atlassian.com/t5/image/serverpage/image-id/341452iA2965A6361DFA2EE/image-size/large?v=v2&px=999 "Screenshot 2024-08-13 124726.png")


author: akshaybhange
body: [@John Funk](/t5/user/viewprofilepage/user-id/7148) what could be the issue ?


author: John Funk
body: I don't know. I am seeing a lot of questions in Community the last few days about CSV import problems. I suggest you open a support ticket with Atlassian to see what they say.

<https://support.atlassian.com/contact/#/>

Please post back here with the resolution in case someone else is having the same problem.

Good luck!


author: akshaybhange
body: [@John Funk](/t5/user/viewprofilepage/user-id/7148) , thanks a lot for the help.   

I found out the project was team managed, and as [@Bill Sheboy](/t5/user/viewprofilepage/user-id/1685313) mentioned, it's a known bug. I've created another company-managed board and CSV upload is working in it.


Tags: cloud

csv

import

jira-cloud