Forums

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

How to get ToDO issues using JQL?

kumar August 8, 2024

Hi all,

 

I am trying to get only "To Do" issues in Jira. I am using below REST API command.

 

url ="https://domain_name.atlassian.net/rest/api/2/search?jql=project=JiraRest&status=TODO&maxResults=1000"

 

Unfortunately, it is giving all the jira issues,

 

Can anyone help me with this please?

 

Thanks in advance 

1 answer

0 votes
Rudy Holtkamp
Community Champion
August 8, 2024

Hi @kumar and welcome to the community,

You can '&status=To+do' in your query

Which should give you the output you requested.

kumar August 8, 2024

Thank you so much @Rudy Holtkamp for the quick help

kumar August 8, 2024

Hi @Rudy Holtkamp It is not working as expected! am I missing something?

Rudy Holtkamp
Community Champion
August 8, 2024

If you enter the URL in your browser you should get the proper response.

E.g. this: 

https://rudy.atlassian.net/rest/api/latest/search?jql=project=alpha&status=To+do&maxResults=100 

Is working for me (I've limited to 100 results for speed).

{ 
"expand": "schema,names",
"startAt": 0,
"maxResults": 100,
"total": 93,
"issues": [{
...
}]
}

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events