Base URL placeholder is not substituted in Gadget

Cyril Burd August 21, 2013

Hello *,

I have a gadget that works fine with hardcoded Base URL variable but fails with:

var gadget = AJS.Gadget({
                baseUrl: "__ATLASSIAN_BASE_URL__",
                useOauth: "/rest/gadget/1.0/currentUser",

(Reference)

The error I see in logs is:

HTTP Status 400 - Invalid request url scheme in url: __ATLASSIAN_BASE_URL__/rest/gadget/1.0/statTypes; only "http" and "https" supported.

Base URL variable in System section is set. Jira is accessible via https://<jira-server>.com and http://jira:8080 as well.

Any assistance is highly appreciated.

1 answer

0 votes
Chris Stamp May 28, 2015

I have same the same issue did you find a solution?

Suggest an answer

Log in or Sign up to answer