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:
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The link is for 7.6.1, if you have another version, you may want to check that, if it is available there.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.