Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to find the REST API URL of a JIRA installation?

I'm trying to get a 2017 vintage application that reads JIRA worklogs and produces an import to a time registration/invoicing system, to work on a recent JIRA.

But so far I've been unsuccessful in discovering working REST API URLs. On all of the URLs I've tried, I've been getting a 200 OK response (I would have been expecting 404...) with a page saying "Oops, you've found a dead link".

Is there a way to discover the REST API of an installation?

Is the REST API disabled by default on recent JIRA installations and needs to be activated in some where in the admin UI?

The person I'm helping with getting the reporting tool up and running, believes this is a cloud JIRA (but it may possible be locally hosted...?).

Using anonymized URLs in the examples, here's what I've tried:

  1. The start URL I was given, was https://jira.mycompany.com/secure/Dashboard.jspa
  2. URLs I've tried that all have given me 200 OK text/html responses with "Oops, you've found a dead link", were:
    1. https://jira.mycompany.com/secure/rest/api/2/field
    2. https://jira.mycompany.com/secure/rest/api/3/field
    3. https://jira.mycompany.com/rest/api/3/field

Thanks!

 

- Steinar

2 answers

0 votes

Hi @Steinar Bang 

If you are using a Jira Cloud instance, the REST API lives under

https://<your_atlassian_site_name>.atlassian.net/ 

And you can refer to this page for all the available endpoints: https://developer.atlassian.com/cloud/jira/platform/rest/v3/

Hi,

Thanks for your answer. If all cloud instances end with ".atlassian.net" then I guess this is an on-prem JIRA and not a cloud JIRA.

Unfortunately I still don't know how to find the correct REST API URL. :-/

The documentation you linked to is what gave me the last two URLs over that I tried and failed (2.2 and 2.3).

The problem is: given a JIRA URL, how do I find the local part that points to the REST API.

In this case the JIRA URL is  https://jira.mycompany.com/secure/Dashboard.jspa and all the REST API endpoints I've tried based on that give me the response: "Oops, you've found a dead link"

Like Veera likes this
Like # people like this
0 votes

>The problem is: given a JIRA URL, how do I find the local part that points to the REST API.

It is  <Jira url>/rest/api/latest

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you