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

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

"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 vote
Janet Albion Atlassian Team May 08, 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.

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. 
 

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

0 vote
Janet Albion Atlassian Team May 09, 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

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.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

243 views 1 18
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