I have obtained a /download link as follows by using the REST API with /content/.../child/attachment
curl --user USER:PASS --url 'https://SERVER.atlassian.net/download/attachments/...
I have used the API token for the REST API request but which user an password should I try for the /download request (is the main user and password?)
Best,
Emanuele
Hi @Emanuele Ruffaldi,
Can you confirm you use the email address instead of the API token to authnticate?
This can indeed be the same as:
- https://community.atlassian.com/t5/Jira-questions/Cannot-make-a-JIRA-REST-API-request-returning-HTML/qaq-p/777618
Also, if you already use the email address, you may have to add the Curl argument to follow redirect. E.g.
curl -D- -L -u EMAIL:API_TOKEN -X GET https://xxx.atlassian.net/.....
Let me know if this helps.
Cheers,Dario
Solved
I missed the -L option.
Thanks
You are very welcome!
Ciao,Dario
It looks like you're new here. Sign in or register to get started.