JIRA API base URL

Dragos Varovici August 28, 2017

I have setup JIRA with a base Url of jira.test.dev. Everything works well and I can access the rest api, however, it returns something like

 

"self":"http://localhost:8100/rest/api/2/issue/11000"

 

when i get http://jira.test.dev/rest/api/2/issue/DEV-35.

This gives me issue with the Jira ruby gem, as it fails to fully retrieve issue

Not sure how to fix this. I am running this on JIRA 7.3.7. What is strange is that it worked a couple of days ago and I have not changed anything in the configuration since. Also noticed the same issue on a different instance of JIRA (7+).

I've noticed in the documentation that there is a setting
called restApi2BaseUrl, but I don't see a way to change it. 

 

2 answers

0 votes
Jonas Andersson
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 29, 2017

No, this means the baseurl is set to localhost as apposed to the FQDN or short DNS name of the machine. Updated this in the general config will produce the right url.

Dragos Varovici August 29, 2017

As you can see from the post the base url is set correctly to the DNS name of the machine.

0 votes
Deleted user August 29, 2017

Hi,

Please try adding port number to the bsae url as in http://jira.test.dev:8100/rest/api/2/issue/DEV-35

Dragos Varovici August 29, 2017

This will not work

Suggest an answer

Log in or Sign up to answer