Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,369,639
Community Members
 
Community Events
168
Community Groups

JQL: How to get only open issues from a project in JQL URL query?

I'm coding an application where I need all open issues of a jira project. But how to get them? In my JSON I see a nested field "status" -> "name": "Open". So it's a nested field and I don't know how to access it. My query looks like this so far:


https://jira.companyname.com/rest/api/2/search?jql=project=key+and+cf[id]+is+not+empty&maxResults=1000

 

1 answer

1 accepted

1 vote
Answer accepted
Alex Koxaras Community Leader Aug 26, 2022

Hi @Miraculous Ladybug 

Jira considers open issues those who haven't yet a resolution, meaning they are unresolved. In your case I would change your http request with a jql which would search for the project = key and resolution = unresolved.

Thank you!! How would someone type this in a URL string?

Alex Koxaras Community Leader Aug 26, 2022

/rest/api/2/search?jql=project=your_key+AND+resolution=unresolved&maxResults=1000

Yours,

Cat Noir

Suggest an answer

Log in or Sign up to answer