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(); });}
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/
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
The link is for 7.6.1, if you have another version, you may want to check that, if it is available there.
It looks like you're new here. Sign in or register to get started.