Can't connect to Jira On Demand with MyLyn

Joe Song March 26, 2012

I can't connect to our Jira On Demand instance (https://periscopedigital.atlassian.net/) using Atlassian Jira Connector 3.0.0v20110210 in Eclipse 3.7. The error just says, "Unable to connect to server" when I click Validate Settings in the Add Task Repository window. I know Mylyn generally works because we have an instance of Bugzilla to which it is connected. I know that my credential in Jira work as I can log in through the web. If I change my server path to use http instead of https I do get a "server has been moved" message so it looks like the connector is doing something. I also turned on "Accept remote API calls" in the Jira general configuration which I thought would fix it but didn't.

I think we are on a trial right now, could that be the issue?

Also, we are behind a proxy but, as I said, I can connect over http.

2 answers

1 accepted

0 votes
Answer accepted
jjaroczynski
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.
March 26, 2012

Hi Joe,

I think the trial should not be the case and Connector for Eclipse definitely does something. In case of wrong credentials you should get appropriate error message so that is also not the case. 'Accept remote API calls' should be enabled so it is OK.

What message do you get when you try to connect without credentials? I tried it on the url you provided and I get "Unable to authenticate with repository. Login credentials invalid.". I get the same message with random credentials so it looks like a connection can be established. I also get "server has been moved" when I try with http instead of https.

If you still get "Unable to connecto to server" without credentials then IMO the most probable reason is your proxy. It can be configured that it passes the http requests but not https. You can define proxy in Task Repository properties dialog and use either global settings or provide your custom one.

Cheers,

Jacek

Joe Song March 26, 2012

Yep, it was my proxy that needed to be configured. I had configured the proxy for HTTP in Eclipse's Network Connections preferences but not for HTTPS. Thanks for your help!

Abel Aneiros September 24, 2015

Hi Joe, Are you still using Mylyn connector with Jira on the cloud? I cannot connect it and I don't know why?

jjaroczynski
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.
September 24, 2015

Abel, What is the error message you get? Please elaborate on the problem and I might be able to give some hint on how to solve it. Cheers, Jacek

Abel Aneiros September 25, 2015

I got "No JIRA repository found at location. Invalid URL or proxy problem." I'm using https://XXXXX.atlassian.net as a Server URL I'm using Eclipse 4.4.2 and Mylyn 3.16 (the latest version)

jjaroczynski
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.
September 27, 2015

What about proxy in your office? Don't you have any that should be configured in Eclipse?

Abel Aneiros September 28, 2015

No proxy, I'm working from home. We used to have an in-house-hosted JIRA and we didn't have any problem at all. Actually, I'm still able to connect to that one within my Eclipse. Is there any different between the "on the cloud" version and the "hosted one"?

jjaroczynski
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.
September 28, 2015

There should be no difference but I haven't tested that. What is you Atlassian Connector for Eclipse version? I will look if it works fine on my side.

Abel Aneiros September 29, 2015

Hi Jacek, These are the versions: Atlassian JIRA Connector 3.0.8.v20130328 Mylyn 3.16.0.v20150609-0543 Eclipse 4.4.2 I will appreciate your help because it's very handy to integrate Jira into Eclipse. Regards, Abel

1 vote
jjaroczynski
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.
September 29, 2015

Hi Abel,

Everything makes sense now. Connector 3.0.8 is quite aged and uses old JIRA API that is no longer available in newest Cloud releases.

Please upgrade to Connector 3.2.5. It connects to JIRA via REST API and should work fine with newest Cloud versions.

Cheers,
Jacek

jjaroczynski
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.
September 29, 2015

Transformed comment into regular answer so it is more visible.

Abel Aneiros September 29, 2015

Thank you very much Jacek! I updated the Atlassian Connector to version 3.2.5 and it's working now!

Suggest an answer

Log in or Sign up to answer