JIRA REST API - how to retrieve issues of a specific status under a filter?

Felix Chan
Contributor
December 12, 2018

I would like to retrieve a list of issues by filtering on a filter ID as well as a status of "In Progress".

I am doing something similar to the following:

https://jira.com/rest/api/2/search?jql=filter=11111&status=In+Progress&fields=id,key,status

 However, when I do this, JIRA just returns all of the issues under filter ID 11111, not just the ones that are In Progress. 

 

Any ideas what I am doing wrong?

2 answers

1 accepted

2 votes
Answer accepted
Tuncay Senturk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 12, 2018

Hello Felix,

As far as I know, you can't use such a query parameter to re-filter your filters.

Alternatively, you can save a new filter including " AND status = 'In Progress'" to your existing filter, and use it in REST method.

Here you can see all query parameters that can be used for this REST service:

  • jql
  • startAt
  • maxResults
  • validateQuery
  • fields
  • expand
  • properties
  • fieldsByKeys
Felix Chan
Contributor
December 13, 2018

Sure, makes sense. It just seems a little tedious to add a new filter with AND status = 'In Progress' since I'm working with a large number of filters.

Felix Chan
Contributor
December 17, 2018

Found a method that works:

https://jira.com/rest/api/2/search?jql=filter=11111+and+status="In+Progress"&fields=id,key,status
Like # people like this
Kellen Law
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 7, 2020

@Felix Chan thanks so much for that! That was what I was needing. Answered my prayers:)

Felix Chan
Contributor
July 7, 2020

Glad that it helped you. :)

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.
December 12, 2018

Hello,

You are sending your JQL the wrong way. It should be:

jql=filter%3D11111%20and%20status%3DIn%2BProgress%26fields%3Did%2Ckey%2Cstatus 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events