How can I get all issues from project=x with status=done and fields[key, self]

Dobromir_Dinkov
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!
June 22, 2020

Hi All!

I'm having trouble to find a solution for getting all stories from agile board that are with status done and limited number of fields. In my case, I want to get only "key" and "self". GET request that returns all fields is similar to: http://<IP>:<PORT>/rest/api/2/search/?jql=project%3D"MyProject"%20and%20status%20%3D%20done

I want to get it as JSON result.

 

Thanks in advance!

1 answer

1 accepted

0 votes
Answer accepted
Dobromir_Dinkov
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!
June 23, 2020

I found a solution for myself:

POST /rest/api/2/search/ 

JSON body:

{
    "jql": "project = 'MyProject' AND status = done",  
    "maxResults": 4,
    "fields":["key"]
}

Suggest an answer

Log in or Sign up to answer