How to effectively find the JIRA's Base URL if you don't have access to Administrative Console

marcomarquez February 9, 2013

Hi Everyone,

I'm running into a seemly simple issue: I can't find the base URL of my JIRA instance. Now, I try to make calls to:

https://jira.inside-company.net/rest/api/2/issue/ISSUE-645

or

https://jira.inside-company.net:8080/rest/api/2/search?jql=assignee=marcoam

I figured that when making calls, the base url would simply be jira.inside-company.net since I access JIRA that way:

https://jira.inside-company.net/secure/Dashboard.jspa

and browsing is:

https://jira.inside-company.net/browse/ISSUE-645

However, the API calls seem to both give me 404's :( How can I find out the correct Base URL if I don't have access to the DB or the administrative console?

3 answers

1 accepted

1 vote
Answer accepted
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.
February 9, 2013

For a correctly configured Jira, you should find it's https://jira.inside-company.net - you can see it from the "browse" line if nothing else.

You can also do a really simple check - read an email from an issue comment or change - they build the urls you find in them from {baseurl}/{target}. If an email says http://mrflibble/browse/penguin-1, you know it's used the base url of http://mrflibble

marcomarquez February 9, 2013

Alright, I guess my company has some extra security or something since I can't access anything. I get a 404 when trying to access the endpoint: {BASE_URL}/rest/api/2/search?jql=assignee=marcoam.

Any ideas of what it could be? If I can't figure out, I guess I'll wait until tomorrow to ask my IT.

Like Patrick Weston likes this
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.
February 9, 2013

It's possible for an admin to deliberately disable it, that would be my first guess (I am assuming you can see Jira in a browser). If it's enabled, then it's probably a network thing.

2 votes
Kinto Soft
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.
February 9, 2013

The REST API provides the base url:

http://docs.atlassian.com/jira/REST/latest/#id105760

Pablo.

1 vote
Kostiantyn Ianovskyi July 8, 2016

ComponentAccessor.getApplicationProperties().getString(APKeys.JIRA_BASEURL);

Suggest an answer

Log in or Sign up to answer