How to enable REST API in Jira

karthik ses April 4, 2017

How to enable REST API in Jira?

2 answers

1 vote
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 4, 2017

Simple answer - install JIRA.

The REST API is available automatically, and is, in all currently supported versions, a requirement for a good part of the system to work.

There's nothing to "enable", it's already there, and you can't turn it off (without hacking core core)

phanikumar1210
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 15, 2017

Then, what is the default URL of JIRA? I was trying to access it from Jenkins at http://hostname:8080/rest/api/2/. I even tried http://hostname:8081/rest/api/2/ and http://hostname:8080/jira/rest/api/2/. But none of them helped me in getting the response. any help is really appreciated. 

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 15, 2017

See https://docs.atlassian.com/software/jira/docs/api/REST/7.6.1/

But, yes, it is <your jira base url>/rest/api/<version>  so http://hostname:8080/rest/api/2/ is right, assuming a recent version of jira and a base url of http://hostname:8080

Scrum1 User1
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 1, 2018

Any documentation for version 7.6.2? Thanks!

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 1, 2018

Try adjusting the url to see it.

Markus Pöhler
Contributor
May 5, 2019

The REST URL just returnd HTTP Error 405. 

That is useless. 

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 5, 2019

Your call to the REST API is incorrect, it's asking Jira to do something the API does not do - check the calls you are making are supported and valid, and that the account you are using has permission to perform the requested action.

0 votes
Monique vdB
Community Manager
Community Managers are Atlassian Team members who specifically run and moderate Atlassian communities. Feel free to say hello!
April 4, 2017

Adding the tag JIRA so you get more responses, karthik!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events