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

Miraculous Ladybug August 26, 2022

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 _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 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.

Miraculous Ladybug August 26, 2022

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

Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 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