Forums

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

Bulk import attachments to JIRA issues

ViswanathanR December 3, 2018

Hello,

Came across this post 

Bulk import attachments to JIRA issues via REST API - 

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?

 

1 answer

0 votes
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 4, 2018

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.

ViswanathanR December 4, 2018

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events