Forums

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

Jql in JIRA URL - filtering issues statuses properly

Samuel Donadelli July 12, 2018
I tried to use the REST API calls in jira and I obtained a list of all issues concerning a certain project called Sandboxjsd. I wanted to filter more and obtain only the issues that contains the status = Triage.
 
I did like this:

https://jira.xxxx.com/rest/api/2/search?jql=project="SANDBOXJSD"&jql=expand=fields.customfield_11200.currentStatus.status="Done"
 
however it did not work, I still see all the issues for project "Sandboxjsd".

can someone assist me please how should I do this jql filter properly?
 
cheers, Samuel

2 answers

2 accepted

2 votes
Answer accepted
Nic Brough -Adaptavist-
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.
July 13, 2018

Each & you've used in the string is another parameter, but a Jira search is only one string.  It's ignoring the second search you've put in because it's separate.

Try merging the JQL into a single search -

jql=project=SANDBOXJSD+and+status=Done

1 vote
Answer accepted
Matthias Gaiser _K15t_
Community Champion
September 24, 2018

Hi Samuel,

I'd recommend you to build your JQL query in the Jira UI in the "Issues" > "Search for issues" view and then copy the jql part which is shown in the browsers url field.

Based on your request, it also seems that you tried to use the expand parameter to list fields. In a search, you can use the "fields" parameter to send a comma separated list of fields you want to get returned.

Please also check the documentation for more details.

Cheers,
Matthias.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events