I am getting an error 404 trying to use the reindex api. Please show me a JAVA example of the call.
POST /rest/api/2/reindex/issue
I have tried with ISSUE_ID from previous query......
jsonStr = "{\"issueId\": \"" + rs.getString("ISSUE_ID") + "\"}";
response = client.jiraConn.Post("/rest/api/latest/reindex/issue", jsonStr.getBytes(), headers);
and
/rest/api/latest/reindex/issue/" + rs.getString("ISSUE_ID")
Both return error 404
But the jira issue id does exist.
I solved my problem.
http://My.Domain/jira/rest/api/latest/reindex/issue?issueId=339331
I forgot to put the /jira in front of the /rest/api/...
Thank you to everyone who tried to help me.
Robin
Hi,
I am getting 404 for the below API. How do I fix it? I need this API to integrate with Japsersoft tool.
Thanks in Advance
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Try to use:
rest/api/2/reindex/issue
and issueId is a parameter and you send it as the payload. It should be like this
rest/api/2/reindex/issue?issueId=12342
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi. Thank you for your response but I am using Java code not the URL line.
I have tried these 4 ways with a continuous 404 result
response = client.jiraConn.Post("/rest/api/2/reindex/issue/issueId:339331", "", headers);
response = client.jiraConn.Post("/rest/api/latest/reindex/issue", "{\"issueId\":\"339331\"}", headers);
response = client.jiraConn.Post("/rest/api/latest/reindex/issue", "{\"issueId\": \"CPQCS-5523\"}", headers);
response = client.jiraConn.Post("/rest/api/2/reindex/issue?issueId=339331", "", headers);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
But you will have to tell your connection which server it should connect to. Do you do that somewhere?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
http://My.Domain/rest/api/latest/reindex/issue?issueId=339331
<!DOCTYPE HTML PUBLIC '-//IETF//DTD HTML 2.0//EN'><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL /rest/api/latest/reindex/issue was not found.</p></body></html>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @rhochteil ,
It seems that you missed the host name of the URL, try http://jiradomain.com/rest/...
And replace jiradomain.com with domain and port where your Jira is running.
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.