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-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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)

Phani Kumar Dadi 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-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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 August 1, 2018

Any documentation for version 7.6.2? Thanks!

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 1, 2018

Try adjusting the url to see it.

Markus Pöhler May 5, 2019

The REST URL just returnd HTTP Error 405. 

That is useless. 

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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