Forums

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

How do I import from a csv while maintaining Epic > Story > Subtask relationships?

Cliff Stovich December 6, 2023

When I attempt to import from a csv the relationships between Epics and Stories break. This is the csv that is generated when I export from a Jira project.

 

KeyIssue TypeParentSummaryStatusIssue color
TPC-1Epic Epic 1To Dopurple
TPC-2StoryTPC-1Task E1-1To Dopurple
TPC-3StoryTPC-1Task E1-2To Dopurple
TPC-4StoryTPC-1Task E1-3To Dopurple
TPC-5Epic Epic 2To Dopurple
TPC-6StoryTPC-5Task E2-1To Dopurple
TPC-7StoryTPC-5Task E2-2To Dopurple
TPC-8StoryTPC-5Task E2-3To Dopurple

 

When I save that csv and try to upload it I get the error: 

 

Import completed with 6 errors:

  • Issue 'TPC-35' is not of a sub-task type (Story). It will NOT be a sub-task of the issue 'TPC-33'
  • Issue 'TPC-36' is not of a sub-task type (Story). It will NOT be a sub-task of the issue 'TPC-33'
  • Issue 'TPC-37' is not of a sub-task type (Story). It will NOT be a sub-task of the issue 'TPC-33'
  • Issue 'TPC-38' is not of a sub-task type (Story). It will NOT be a sub-task of the issue 'TPC-34'
  • Issue 'TPC-39' is not of a sub-task type (Story). It will NOT be a sub-task of the issue 'TPC-34'

So my stories aren't being uploaded. If I make them sub-tasks instead of stories I can upload without problem but I can't change the Issue Type from Story to Sub-task for what I'm trying to do. 

 

How do I get that downloaded csv to upload while maintaining the Epic>Story parent child relationship?

 

Thanks

1 answer

1 accepted

1 vote
Answer accepted
Cliff Stovich December 6, 2023

Nevermind. I figured it out.

 

You would imagine that the "export to csv" function would create a csv that could then be uploaded via the external system import function to create the same project with the same issue relationships. That's not the case. The 'parent' function only defines relationships between a parent and subtasks. To link stories to epics you need to use the epic name and epic link functions.

Vineeth T
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!
December 29, 2023

I've been going crazy with the same situation. I finally broke up the upload file into multiple files and cross referenced them:

  • Feature (with blank epic-link/parent id)
  • Epics (using Jira feature reference from uploading file-1 as "parent" field e.g., PROJ-101)
  • User Stories (blank parent field, but used the epic-name from file 2 as epic-link in file 3 for hierarchy)
  • Sub-tasks (blank epic-link field, but added Jira reference for user stories generated after uploading file-3 as parent column)

It is a real pain to upload hierarchy after the Parent column came in and deprecated the epic-link and parent-id fields. I have to maintain several config files and adds time to cross reference everything.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events