How to upload the attachments exported from server trough csv in cloud

Ashish Pandey October 23, 2020

Context

I have used JIM to export filter data in csv from server.

That data has to import on my client's cloud.

When I take export from server, it exports all attachments in csv columns (multiple columns created to have each attachment detail in csv).

But, when I import the csv in cloud, then all data gets imported successfully except attachments.

All attachments added as thumbnail.

 

After that I found an article https://confluence.atlassian.com/cloudkb/importing-attachments-into-jira-cloud-using-csv-external-system-importer-966669960.html , and I have followed steps to use API token to re-upload attachments. But, attachments are failing.

Since my attachments are exported from server, and import is needed on cloud. So, I followed the steps below, but that is also failing

If the source JIRA site is a JIRA Server (self-hosted) instance

Instead of using your JIRA Cloud Email Address and API-Token, you should use your JIRA Server Username and Password instead.

Three options I tried to import attachments, and all failed

1. Created API token on cloud. In exported csv, replaced section in my attachment url.

replaced https://myServer.com with https://<cloud_username>:API-Token@myServer.com

2. Reused API token created on cloud. In exported csv, replaced section in my attachment url.

replaced https://myServer.com with https://<server_username>:API-Token@myServer.com

3. In exported csv, replaced section in my attachment url.

replaced https://myServer.com with https://<server_username>:<server_password>@myServer.com

Please guide to get fix issue.

1 answer

0 votes
Walter Buggenhout
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 23, 2020

Hi @Ashish Pandey,

It might be a better idea to use the Jira Software Migration Assistant tool (Marketplace listing ) for this type of operations. It has built-in support for migrating the attachment files (with the projects they are associated with).

The tool is free, so no obstacles there - I guess.

Shahzad Anjum October 23, 2020

 @Walter Buggenhout 

I just migrated JIRA projects from server to Cloud through Jira Software Migration Assistant tool. Everything seems ok but attachment is having issue, I cannot open/access the attachment.

Attaching the error message while click on any attachmenterror.JPG

Walter Buggenhout
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 23, 2020

Ok @Shahzad Anjum,

I'm not sure if your feedback is related to the initial question by @Ashish Pandey. But based on the screenshot, 2 things:

  • Maybe the attachments are indeed of an unsupported file type, so they cannot be previewed in the Cloud UI? I can't judge that based on the screenshot itself. If you click the download button and you get the file out, probably that's the cause.
  • If downloading the file doesn't work either, there is a good chance that something went wrong with either the files themselves or the path that references them behind the scenes. In either case, Atlassian migration support should be able to help you fix the issue. Find out how to contact them in this post.   
Shahzad Anjum October 23, 2020

@Walter Buggenhout  No my feedback was not related Ashish query, Thanks for your feedback, I am raising support ticket.

Suggest an answer

Log in or Sign up to answer