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
atlassian, likes for trees, atlassian community, social impact, tree planting campaign, community kudos, atlassian giving, environmental impact, sustainability, likes for good, atlassian social responsibility, community challenge

Make every click count—help us plant 50,000 trees! 🌳

Want to make your everyday Community actions directly contribute to reforestation? The Atlassian Community can achieve this goal by liking a post, attending an ACE, sending your peers kudos, and so much more!

Help us plant more trees
AUG Leaders

Atlassian Community Events