Forums

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

I can access a list of Issues for one project but get a 400 error trying to access another. Why?

joshua.page
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 19, 2021

I can get a list of issues for one of our companies projects just fine hitting the rest api but when trying to access a separate project the same way I am getting a 400 error.   I have admin roles for both projects.  Is there something I am missing?  

Here is the call that works "http://company.atlassian.net/rest/api/3/search?jql=project=project1key&maxResults=100"

the only thing that changes for the second is the project key.  

Can anyone help me out?

1 answer

0 votes
Sunny Ape
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 19, 2021

Hello @joshua.page 

A 400 error is an invalid JQL query. What happens if you try a very basic query such as:

"http://<yourCompany>.atlassian.net/rest/api/3/search?jql=project = <projectKey>"

Is it just the second project that gives the 400 error, or all other projects other than the 'good' one?  Do you get the error doing both PUT and GET style requests?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events