JIRA API base URL Edited

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

This widget could not be displayed.

Hi,

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

This widget could not be displayed.

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.

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

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

143 views 2 0
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you