Forums

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

Attachment are missing while importing data from one project to another project in jira.

prashant_hiremath May 6, 2020

I am trying to import data from one project to another project in Jira using the CSV migration method but attachments are missing while importing. Attachments are skipping and data got imported.

Please find the error screenshot attached to this ticket.

Screenshot 2020-04-30 13.46.42.png

1 answer

0 votes
Earl McCutcheon
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 7, 2020

Hello @prashant_hiremath ,

When importing attachments via CSV the attachment source need to be directly accessible by the system importing the image, meaning there cannot be a login prompt or permission check occuring as a redirect to the images location, even when the attachment lives on the same system.

There is a note about this on the Following KB for importing attachments where you either have to make the attachments publicly accessible by making the source Jira instance anonymously assessable or by applying a workaround noted in a linked KB to pass in credentials from the local instance:

(warning) Note that URLs for attachments support the HTTP and HTTPS protocols and can be located anywhere that your Jira Cloud site can access. the URL needs to be externally hosted so the source JIRA instance needs to be Anonymously accessible or on JIRA cloud you can pass in the log in credential as detailed in this KB "Importing attachments into JIRA Cloud using CSV External System Importer"

The noted Secondary KB details the  option to pass the authentication details in the attachment URL to allow a direct link in the csv using the format:

https://user%40domain.com:<API-Token>@mysite.atlassian.net/secure/attachment/10000/image.png

Also a quick note on this the @ converts to %40 in a URL string so it is crucial to apply this as "user_name%40mysite" and not "username@mysite" as the unencoded @ character will not work.

Please check this out and let me know if this works for you.

Regards,
Earl

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events