Forums

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

how to get all open issues in a project

SP
Contributor
March 4, 2020

how to get all open issues in a project using api ( curl )

3 answers

0 votes
SP
Contributor
March 5, 2020

Got it, below is the query.

https://localhost/jira/rest/api/2/search?jql=project=TESTKEY%20AND%20status=open&fields=id,key,summary,descprition,status&maxResults=1000

SP
Contributor
March 5, 2020

i didn't understand what is difference & and %20AND%20

When is use '&' it didn't work

0 votes
SP
Contributor
March 5, 2020

Hi Kurt,

Tried below query, still not able to get open issues.

https://localhost/jira/rest/api/2/search?jql=project=testproject&status=open&fields=id,key,summary,description,issuetype,status&maxResults=1000

0 votes
Kurt Klinner
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.
March 4, 2020

@SP 

 

Hi and welcome to the Atlassian community

Have a look to the API examples at https://developer.atlassian.com/server/jira/platform/jira-rest-api-examples/

something similar to the query below should get you the right results

curl \
   -D- \
   -u charlie:charlie \
   -X GET \
   -H "Content-Type: application/json" \
   http://localhost:8080/rest/api/2/search?jql=status=open

 Cheers

Kurt

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events