How to get attachment details in all issues by rest api

Hi Experts,

I am getting all issues details by below rest api but not getting attachment details which is associate with the issue. How to expend attachment details in the same jql?

REST API get all issues :

Add &fields=attachment to the end of the query to expand the Attachment field.

1 Like

Thank @sfbehnke!
But if I add this “/rest/api/2/search?jql=project=UCOP&fields=attachment” then it is showing only attachments info. I want issue details with attachment.

My old rest api “http://localhost:8080/rest/api/2/search?jql=project=HPAL” is giving me all the issue details except attachment.

If you want all then add fields=*all or fields=all, I forget.


Kindly add attachment information in my JQL String. Below JQL String is working fine I just want to add attachment information in response JSON.