I jira issue collector, which how the url is defined to send request to jira server

onionpi May 7, 2013

I got my jira server address in the javascript code which is returned when I fetch the jira issue collector code from jira server, like: /jira/s/en_GBoe3h6w/782/4/1.2.5/_/download/batch/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector.js?collectorId="+this.collectorId

How can I set what url should be used in jira collector? I am forwarding request between my portal and jira server.

6 answers

1 accepted

0 votes
Answer accepted
onionpi May 13, 2013

"the Issue Collector will use the URL used when accessing JIRA. For example, if you access JIRA via http://10.75.2.33/ then the Issue Collector will use the URL http://10.75.2.33" - Janet

From my test, if you change server name in Jira server'a Apache setting, Issue Collector will return different URL.

0 votes
onionpi May 9, 2013

Hi Janet,

Thanks! And good to know this.

I am using JkMount to access to jira server. I define it as worker.xxx.host=10.75.2.33

worker.xxx.port=8009. That's why I revieve this url there.

And, if I define server name in jira server's apache, the url will be changed? I even have different url in different jira collector now.

0 votes
Janet Albion
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 9, 2013

Hi Cong,

The URL generated by the Issue Collector does not seems to be affected by the Base URL configured in the General Configuration.

From my test, the Issue Collector will use the URL used when accessing JIRA. For example, if you access JIRA via http://10.75.2.33/ then the Issue Collector will use the URL http://10.75.2.33

-Janet

0 votes
onionpi May 9, 2013

I mean where can I find how the jira collector generate "http://10.75.2.33/"

0 votes
onionpi May 9, 2013

Hi Janet!

Thank you for your reply!

My problem is about the javascript code which is returned from this URL. Inside the javascript code, I have such code:

dummyElement.href="http://10.75.2.33/jira";
src="http://10.75.2.33/jira/images/throbber/loading_barber_pole_horz.gif"
var baseUrl="http://10.75.2.33/jira";
 
What I want is to re-define the address returned, otherwise, browser will have un-secure warning. 
 
0 votes
Janet Albion
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 8, 2013

Hi Cong,

I don't really get your requirement. But, the URL should look like example below:

So, the http://internal.jira:8210 is actually the URL to my internal JIRA instance and the "306e002a" is the Issue Collector ID. In your case, the JIRA URL should be specifying the URL to your JIRA instance as how your user access JIRA.

Suggest an answer

Log in or Sign up to answer