Hi All
The problem scenario is
1) An import from an external CSV source to Jira cloud project (Project A) was done few months ago. The rest api access for images was provided by the external company and the project was imported.
2) Since then, the access to images has been terminated.
3) In Project A, I noticed some formatting issues in the Description field.
4) I have the source CSV file. But if I reimport the CSV to a new Jira project (Project B), the images are not downloaded to Jira issues.
The images are available in Project A. I will be able to replace the prefix of image URL in CSV file, if I am able to find out where the images from Project A are stored.
Any help appreciated.
Thank You
@Lígia Zanchet Below are the steps I followed and documented. I will publish in a separate Article too.
Migration/Data Import:
For anyone familiar with data migration in the context of Jira/Database/ Excel, etc there are basically two key areas.
In my example where the import was done from a csv file to a new Jira project, the steps I followed in a successful/clean import (after having several hiccups without a process ) are below:
Source Data Review:
=COUNTA(A2:A101).
This is to count all non-empty cells between A2 and A101, assuming you have 100 rows of data.
Just understand your input data. It will help you with making decision for migration.
Destination/Jira Project requirements:
Sample table to do mapping between Source and Destination
Field Name (Source) |
Field Name (Target) |
Comment |
Assignee |
Assignee |
Do not migrate |
Assignee Id |
Assignee Id |
Do not migrate |
Comment |
Comment |
Migrate |
Components |
Components |
Required components created |
Created |
Created |
Migrate |
Creator |
Creator |
Do not migrate. Delete column |
Creator Id |
Creator Id |
Do not migrate. Delete column |
|
|
|
|
|
|
Issue Types mapping:
Example mapping:
Source Issue Type |
Target Issue Type |
Activity |
Task |
Bug |
Bug |
Core Task |
Task |
Design |
Task |
Epic |
Epic |
Improvement |
Task |
Story |
Story |
Sub-task |
Sub-task |
Task |
Task |
I chose to map the issue types and workflow status and update the source CSV to limit the mapping decisions I need to make at the time of import in Jira.
But you will have an option to make these mapping decisions at the time of import.
Workflow/Status mapping:
Source Workflow Status |
Destination Jira Project Workflow Status |
Open/Ready |
TO DO |
In Progress |
DEVELOPMENT |
Blocker |
BLOCKED |
Needs Review – UAT |
READY FOR UAT |
UAT Ready |
READY FOR UAT |
UAT TEST |
IN UAT |
In UAT Testing |
IN UAT |
Need Review – Prod |
PRODUCTION VERIFICATION |
Client Approved or Closed |
DONE |
Components and Labels
Options
All three options have been tested.
Parent-Child Links
To import parent-child links, make sure the below fields are selected for import.
Jira sorts and manages the order of Parent-child issues. The file doesn’t have to be sorted by EPIC first.
User IDs
I did not migrate user ids.
HTML Formatted Text
I had issues with importing HTML formatted text initially.
Just leave the ‘Map field value’ unchecked
When this is checked, the import gives you an option to review all values to be mapped for this field. I left this unchecked for all fields. If there is a discrepancy, for example if a status is not present in destination, the import process will force you to map the field to a value that is available.
Image Import
When importing images, Browse Project permission to be allowed as Public for the Jira project where the images are stored at source. There is another option to use Userid, password in the CSV. But I used the Browse projects permission method.
Date format
Choose/update to the right date format setting when you commence the import.
Field to be mapped not available in the list of fields in the dropdown
If you do not see the field, check field configurations, context etc to make sure the field is available for the destination project.
Test Migration:
I ran the import with a small sample to check if images, dates and other values are imported correctly.
I had ‘delete issues’ permission and deleted the issues and re-ran the import few times until I got everything right. But doing the pre-work and mapping helped run the import more smoothly and identify and address gaps easily.
Some useful links
https://support.atlassian.com/jira-cloud-administration/docs/import-data-from-a-csv-file/
Excellent and detailed explanation, @Kavitha Chandrasekaran
Thank you so much for sharing it with our community
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Kavitha
Thank you for your comment.
When importing attachments using a CSV file, you need to specify the URL of your attachment
You can refer to our documentation on importing attachments
Based on what you described, the attachments are still visible in Project A. You can export that project and use the attachment column from that CSV in your source.
Could you please try that option and let us know?
Thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Lígia Zanchet I will certainly give this a try and post the update here. Appreciate you taking time to reply.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Lígia Zanchet
The exported URL looks like the one below. I have updated the domain name to not make it public. But otherwise this is exactly how the exported URL looks like from Project A.
I tried using one issue import.
I copied this to the Attachment column to be imported to Project b.I tried several combinations of this format but getting errors like 'Error parsing image' etc. The issue is being imported. Just the attachment is failing. Any help appreciated. Thanks!
01/Feb/23 12:17 PM;ug:4477d54e-1e61-4c0f-890d-a4315a19162b;image-20230201-011728.png;https://abcdomain.atlassian.net/rest/api/3/attachment/content/21913
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If I access the URL https://abcdomain.atlassian.net/rest/api/3/attachment/content/21913 from a browser, the image gets downloaded successfully. That says that there is no access issue and the image is present.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Lígia Zanchet I got it to work. I had to change the Browse Projects permission in the Source project that has images to Public for the import to access the images. Thanks for your help!! I learned a lot in this process and will be putting together an article for Atlassian community.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Kavitha Chandrasekaran Happy to hear you were able to migrate the attachments. Thank you so much for the information; if possible, once you have created the article, could you please share it on this post, too? That would be awesome.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.