Forums

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

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 Champion
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 Champion
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
TAGS
AUG Leaders

Atlassian Community Events