Hi
I am trying to retrieve the issues those are returned by JQL using search API,
https://intelligenceapp.atlassian.net/rest/api/2/search
Method : Post
Post data:
however that returns all the fields except the attachment field.
But I am able to view the attachment
https://intelligenceapp.atlassian.net/rest/api/2/issue/{{key }} API.
Could anyone tell me what's wrong with this.
Note: I have added the Attachment fields in Field configuration and screen as well
If I remember correctly you need to explicitly specify the fields for this to work. Try adding
fields=attachment
to your request.
Best,
Hannes
yes, that works for me but since I am getting JQL result as a response I wanted to get the attachment for all the issues the API returns.
To acheive that currently I am looping the response and requesting the retrieve issue API by specifying the fields=attachment the params which is time consuming.
It would be better if I can get the attachment while requesting the below API
https://intelligenceapp.atlassian.net/rest/api/2/search
Method : Post
Post data:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.