Hi,
I am new to Jira Rest API and i am running Jira 5.1. Is it possible to do oAuth authentication process using Jquery ajax from another genric application?
In this link JIRA REST API Example - OAuth authentication step 1 i completed. I am getting error in step 2.
I tried like this:
jQuery.ajax({ //The URL to process the request 'url' : 'http://localhost:8080/domejira/rest/api/latest/plugins/servlet/oauth/request-token', // 'data' : {'username': 'jiraadmin'}, 'type' : 'GET', 'success' : function(data) { alert('Request token is: ' + data); } });
Got error:
"NetworkError: 404 Not Found - http://localhost:8080/domejira/rest/api/latest/plugins/servlet/oauth/request-token"
thanks for the replies.
In the above code the url is worng thats why i am getting 404 error.
Now i changed the code to:
jQuery.ajax({ //The URL to process the request 'url' : 'http://localhost:8080/domejira/plugins/servlet/oauth/request-token', 'type' : 'GET', 'success' : function(data) { alert('Request token is: ' + data); } });
Now the url is ok but i am not getting the "Request token" and the response content size is showing zero .
Hello, this is kinda old but were you able to make it work? I'm stuck in a similar situation
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The 404 error indicates that it cannot find any of the REST endpoints at this address. May I ask what url you use for accessing JIRA?
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.
Are you using any form of reverse proxy? What do you get when you access a url similar to this (be sure to edit the issue key and number):
http://localhost:8080/domejira/rest/api/latest/issue/EXAMPLE-1
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When i access through browser with this url
http://localhost:8080/domejira/rest/api/latest/issue/169-59
I am getting the issue in json format.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.