JQL query not giving the expected result when executed using the REST API.

However it works just fine when executed through the web UI.

Here is the query: Project=<project name> AND resolutiondate > 2016/10/29

The query when executed through the REST API returns all issues for the project instead of returning only the ones that are resolved after 2016/10/29

Rest call I am making: https://opswat.atlassian.net/rest/api/latest/search?Project=FV%20AND%20(resolutiondate>"2016/10/29")

 

I was able to solve the issue by using "Project in (FV)" instead of "Project=FV"
 

1 answer

0 votes

I assume you mean REST API (the web ui also uses the API, but not the REST one)

Could you give us the REST call you are making?  Also, could you use a different date, one that's clearly correct and we can tell the difference between month and day (some cultures incorrectly mess up the least<->most significant order and put month before day - 2016/10/10 could be either, but 2016/10/31 is right and can't be mistaken)

Just added those details to the question.

 

Ok, that looks like it should work (and return all FV issues resolved after 29th October 2016).  I suspect it might work in a browser, but you might have to encode it fully in other places.  You've already got most of it, but try this (I've dropped the braces, for simplicity)

https://opswat.atlassian.net/rest/api/latest/search?Project=FV%20AND%20resolutiondate%3E%222016/10/29%22

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

24,270 views 2 7
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you