Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

ERROR by import attachments to Jira server issues via REST API

Alessandro Lazzarini
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 13, 2022 edited

Hi all, I'm trying to use this guide to import many attachments in several:

 

https://confluence.atlassian.com/jirakb/bulk-import-attachments-to-jira-server-issues-via-rest-api-729750741.html


when i start the command :


./jira_attachments_import.sh <user account> <password> ABC https://<project_name>.atlassian.net | tee Jira-IMPORT.txt


unfortunately I get the following errors :

Unbenannt1.png


I followed the procedure step by step and also tried to change the structure of the Directories where the files to be attached are contained, inserting the Directory 10000 and then I also tried 20000. Of course I have replaced the letters ABC in the command with the KEY of my project in this case TIK.

The script seems to work, because it tries to load the data, but apparently it can not communicate with the server.
I don't understand where the problem could be.
I'm performing this operation in a Linux PC (as written in the guide), The project has just started and we are less than 10 users, so we are using the Free version of Jira. As described in the guide, I have inserted my API-Token instead of the password.

Thanks in advance for your help

1 answer

1 accepted

0 votes
Answer accepted
Alessandro Lazzarini
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 25, 2022

I solved it myself.
I went to the instructions on how to use Atlassian's Rest API

https://confluence.atlassian.com/jirakb/how-to-add-an-attachment-to-a-jira-issue-using-rest-api-699957734.html

and created my own script with the command to upload files as attachments.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, ace, atlassian community event, donation, girls who code, women in tech, malala fund, plan international, kudos, community badge, badge, atlassian badge, International Women’s month, International Women’s Day, women's month, women's day

10 for Change at Atlassian Community Events

Show up and give back by attending an Atlassian Community Event: we’ll donate $10 for every event attendee in March!

Join an Atlassian Community Event!
AUG Leaders

Upcoming Jira Events