I have a requirement ,some example given below

I have to create a new epic ,Bug Tasks and Sub Tasks newly and link them each other properly
I would need a working template ,in the above what is the change i would need to do in csv file and the setting to be done in JIRA to do this import properly .Aim is to create everything one by one and link them properly .
Thanks is advance ,
For both Cloud ,Company owned data center JIRA provide help