i've doing a migration from JIRA 4.1 to JIRA 4.4.5 to 6.4.7 and finaly to JIRA cloud.
after the export from 6.4.7 the attachments won't import. getting the following error:
attachements.zip contains a dir attachments with the projects.
the server is running on linux ubuntu when copying to my local windows 7 machine the zip errors because of long file names.
I've already created my own solution. By making a cloud backup en exploring the backup file i found the filenames only have a id number from JIRA not a complete filename with file extention.
After making a python script thas renames all the file name from a complete name to a JIRA file id i can now import the attachments
part of my python script that renames all attachments:
is searches the attachment directory for sub directories when a file is found , the first char until "_" wil be the file name (JIRA file id)
def checkFileNames(): found = 0 reNamed = 0 errors = 0 print "$$$$$$$$$$$$$$ Starting to rename files $$$$$$$$$$$$$" for dirName,subdirList,fileList in os.walk(rootDir): for fname in fileList: found = found+1 if "_" in fname: fileId = (fname[0:fname.find('_')]) print fileId print dirName +" "+fname+" "+fileId+" "+str(subdirList) os.rename (dirName+'/'+fname, dirName+'/'+fileId) reNamed = reNamed+1 else: print "Error "+fname+" not contain _ or already done" errors = errors+1 print "\n Renaming DONE \n found "+str(found)+" files Renamed:"+str(reNamed)+" Errors:"+str(errors)
so the new file tree looks like:
_CVA goedkeuring JetBrains PhpStorm + Adobe Photoshop Ids xxxxxxxx.pdf
Hope atlassian wil document this as a important solution to the import errors people have when migrating and wil change this as option in the cloud import tool.
Could you confirm that the attachments.zip file structure is the following:
In case you are sure everything is fine, then I would suggest you to open a support ticket under support.atlassian.net
Yes i'm sure is used the following structure
today i've tried again also i've made a small attachments.zip with the following:
(xxxxxxxx = name)
Two projectsnames AAI and AANVRAAG back-uped from the JIRA server
the following still give a error when uploading
|-- 28193_Delivery Note-140010129VL-20141210-1131.pdf
|-- 28191_CVA goedkeuring JetBrains PhpStorm + Adobe Photoshop Ids xxxxxxxx.pdf
|-- 28268_Delivery Note-140010597VL-20141217-0853.pdf
|-- 28269_Levering PHPStorm.msg
Whats wrong with these files and directory?
please help we have 500+ users to migrate and need a solution otherwise we must look for another program.
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot