Forums

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

Need result from below REST API query

Akanksha Singhal
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!
March 9, 2021

As I am looking out for the result for below query

<your_jira_url>/rest/api/latest/search?jql='project'=AD'and'status'!='Closed'and'status'!='Resolved'

 using REST API.I need status of closed and open JIRA ticket,but it says "errorMessages[

  • "Error in the JQL Query: Expecting either 'OR' or 'AND' but got 'and'. (line 1, character 19)""

 

1 answer

1 vote
Kristin Lyons
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.
March 9, 2021

I think you are missing a single quote before your project key.  Try using this:

 

'project'='AD'AND'Status'!='closed'AND'status'!='resolved'

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events