Forums

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

/rest/api/3/filter/search Returns 404

Alexander Porrello
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!
June 28, 2019

I am trying to create and access created filters with Jira's REST API. Unfortunately, when I try to access https://jira.mydomain.net/rest/api/3/filter/search, I am met with a 404 error. I've tried GET, POST, and PUT, all to no avail. I've tried sending a JSON file with my request, and I've tried sending no JSON file. Nothing works. I used the Jira docs as an example:

 

https://developer.atlassian.com/cloud/jira/platform/rest/v3/?_ga=2.170692839.67356134.1561578601-29489352.1560884227#api-rest-api-3-filter-search-get

 

Any idea what's going on? I have successfully created a filter, and I have can access my favorites through the API. It's only the search feature that's not working. My code is below:

 

async searchFilters() { 
var data = {
name: nameString
}

return new Promise(resolve => {
let request = new XMLHttpRequest();
request.open('GET', "https://jira.mydomain.net/rest/api/3/filter/search", true);
request.setRequestHeader("Accept", "application/json");
request.onload = function () {
if (request.status >= 200 && request.status < 400) {
resolve(request.response);
} else {
resolve(request.response);
}
}
request.send();
});
}

1 answer

1 accepted

1 vote
Answer accepted
Bastian Stehmann
Community Champion
June 28, 2019

Hi @Alexander Porrello ,

 

The link is for jira cloud, but your tags are saying you are on server.

Server is still  on version 2.

 

Try this for example. 

https://docs.atlassian.com/software/jira/docs/api/REST/7.6.1/

Alexander Porrello
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!
June 28, 2019

Thanks so much for the reply. Interesting. It does not appear as if Version 2 has the search feature. Am I reading something wrong?

 

https://docs.atlassian.com/software/jira/docs/api/REST/7.6.1/?_ga=2.135894262.67356134.1561578601-29489352.1560884227#api/2/filter

Bastian Stehmann
Community Champion
June 28, 2019

The link is for 7.6.1, if you have another version, you may want to check that, if it is available there.

Suggest an answer

Log in or Sign up to answer