Hello,
Came across this post
indeed its useful https://confluence.atlassian.com/jirakb/bulk-import-attachments-to-jira-issues-via-rest-api-729750741.html
I have followed the steps and attachments still imported as content IDs for few of the issues.
Question is
when it says run the mv command, it mean copy and paste to the target directory?
Could someone help?
First off, the mv command is used on a copy of the source data directory, not the original. That is noted in the instructions at the top of that section.
Secondly, the mv command is not intended to move these files to the target directory. Instead you need to do that step in order to collect the files, and maintain their filenames that are stored in the database. That Instructions section does not have the goal of moving these attachments to their final location, but rather it is a means for you to get these files from the source and then convert them back to their original filenames and in a way that the Procedure section can then be used to upload these files via the script/REST steps.
Thanks Andrew, yeah understand on how to perform and execute. Apologies if question was not clear. I understand mv command is to collect the files and run in the copied directory. When it says run , I wasn't sure. Hence I asked what is run like copy the files or something else. I created the sh script for the mv files , ran it which sorted the file names and then I ran the jira import sh file which migrated the attachments.
thanks again for the reply, Cheers
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.