Pulling Jira REST API on HTTP

Prav October 7, 2019

Does OAuth connection have to be done via HTTPS to pull Jira REST API? Trying to use the API via ReactJS to create custom reports.

Following documentation provided by Atlassian on Jira REST API for servers. And after getting past CORS error currently stuck on more OAuth errors.

1 answer

0 votes
Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 9, 2019

Hi @Prav ,

It totally depends on how you Jira Server is configured:

  • If it is configured to only accept incoming HTTP requests then you can only send REST API requests using HTTP
  • if it is configured to accept HTTPS only, you will have to send the requests via HTTPS instead
  • if it is configured to accept both, you can use both.

 

Also, not sure what you are using to test your REST API calls, but it might be a good idea to generate the Oauth token, authorize it and then first try to authorize some REST API calls using Curl.

This way you can isolate the problem and determine if the problem is with the generated  Oauth token, or with your code or with the endpoint itself. 

 

For further details on view please review: https://developer.atlassian.com/server/jira/platform/oauth/

 

I hope this helps.

 

Cheers,
Dario

Suggest an answer

Log in or Sign up to answer