Forums

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

Using the JIRA REST API, how can I include the attachments field in the response returned by JIRA?

Dustin February 15, 2018

I'm making a GET request (to fetch ALL issues) to the following URL: https://{myInstanceName}.atlassian.net/rest/api/2/search?jql=project={myProjectName}. This request returns all of my issues as expected, but for some reason, the attachments field is left out. When I make a request for a single issue, it includes the attachment field. 

 

How can I make a request where the response will include the attachment field for all issues?

1 answer

0 votes
Alexey Matveev
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.
February 15, 2018

You query should be like this

https://{myInstanceName}.atlassian.net/rest/api/2/search?jql=project={myProjectName}&fields=*all

Dustin February 16, 2018

THANK YOU!!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events