Forums

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

Can not download images attachement or open issues attachment in browser.

Chirag Taraviya
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!
October 6, 2018

Hello!

I am using jira api with php. I am using basic authentication with username and token.

I am getting all filtered issues as i needed using following url.

$url = "https://myProject.atlassian.net/rest/api/2/search?jql=project = LIST AND status = 'Go Live'";

But for attachments i need to make saperate call for each issue. i.e.

$url = "https://myProject.atlassian.net/rest/api/2/issue/LIST-135";

It gives me attchement details of issue but i can not download attachment. I want to save attachments to my server.

I have tried following url

$url = "https://instance.atlassian.net/secure/attachment/<id>/<name>"

Am i missing somthing or dowing anything wrong stpes?  Please suggest.

 

How can open attachment to browser or download attchment? Please provide suggestions.

Thanks

 

 

1 answer

0 votes
Hernan Montes
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 6, 2018

Suggest an answer

Log in or Sign up to answer