Forums

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

Get all issues with the status open

Deleted user June 4, 2018

Hello everybody

I konw that there are somehow similar questions. But no solution workes for me. I am new to using the jira API and so an. I am trying to get all issues which are stored in a specific board. With:

https://company.net/rest/agile/latest/board/BoardNumber/issue

it is working somehow. But i get all issues. What I want, are only the issues which are still in the "open" collumn. So i tried much things e.g.

https://company.net/rest/agile/latest/board/BoardNumber/issue?jql=status in (open)
or
https://company.net/rest/agile/latest/board/BoardNumber/search?jql=status in (open)

and so on. But nothing is working. Can someone help me out here? Thanks in advance.

2 answers

1 accepted

0 votes
Answer accepted
Kirubel Tesfaye
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 4, 2018

hi @[deleted],

The above jql doesn't work because your url is incorrect. It should be like this 

https://company.net/rest/api/2/search?jql=status in (open)

 

But this won't solve your problem because it will grab all the issues that are open.

Instead since a board is built on a query & the filters on boards are all saved filters - you should simply be able to find  from the list of all filters available. After finding the filter used by the board you wanted, copy it and append status in (open) to the filter.

Use this modified filter by appending it to the above jql  url below

https://company.net/rest/api/2/search?jql=

If you don't know where to locate the filter used by the board use the documentation link below

https://www.atlassian.com/agile/tutorials/creating-your-agile-board

Hope this helps!

Deleted user June 4, 2018

Thank you for the information. With the help of this informations, i was able to understand how it works with the boards and projects and so on. There were already some labels and queries in place which i could use to get the data i wanted. Nice. Thanks :-)

0 votes
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 4, 2018

Hello,

Your rest call should be like this:

https://company.net/rest/agile/latest/board/BoardNumber/issue?jql=status%20in%20(open)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events