gioboa / jira-plugin

Jira plugin for VsCode
https://marketplace.visualstudio.com/items?itemName=gioboa.jira-plugin
MIT License
265 stars 41 forks source link

Jira Atlassian v74.5 and https: impossible to connect #108

Closed magneticcore closed 5 years ago

magneticcore commented 5 years ago

We use Jira internally with a proxy. Visual Sudio Code: 1.33.1, Windows version Jira-Plugin: 0.16.0

After switching to Jira v7.4.5 and using https in place of http for the Jira server, Jira Plugin cannot anymore connect to our Jira server (before with old Jira server version and http, all was worked as expected and great).

Now Jira-Plugin gives the following error: Error: Check Jira Plugin settings in VSCode TypeError: cannot read property 'status' of undefined

the following settings are in use in VSCode: http.proxy: https://ourproxy http.proxyStrictSSL: false jira-plugin.baseUrl: https://jiraserver jira-plugin.strictSSL: false

I cannot find anything to resolve this problem. Thank you for your help

gioboa commented 5 years ago

Hi @magneticcore , did you try by adding some statuses in additional stutuses setting?

magneticcore commented 5 years ago

Hi gioboa, Thank you for your quick answer.

There is no additional status in jira-plugin settings. Is these additional status match jira state or status? If yes, there is no new visible jira state in Jira server v7.4.5 comparing to our previous version. But I need to check with an administrator. If no, what it is exactly?

gioboa commented 5 years ago

With this special setting you can add custom status e.g Done, In progress and the plugin will use them. Try to set Done, In progress, To do and check the result.

magneticcore commented 5 years ago

I put a lot of jira status separated by comma (English and french) as you told me but still the same, error. I wrote them like yours,, Done and not done. The list: Done,In Progress,No Category,To Do,Opened,Reopened,Resolved,Closed,In Creation,Affected,Rejected,Ready,New,Ready for Version

Is there a possibility to know which status is missing?

gioboa commented 5 years ago

Maybe it's another problem. Firt of first, do you see issue list correctly?

magneticcore commented 5 years ago

No list of issues. In fact, nothing. After opening VS Code, the jira-plugin raises the error directly. That's why I thought about connection problem.

gioboa commented 5 years ago

The fastest way to understand the problem is hack the plugin code. In this folder you have all installed extensions %USERPROFILE%.vscode\extensions If you open with text editor this file %USERPROFILE%.vscode\extensions\gioboa.jira-plugin-xx.xx.xx\out\src\services\store.service.ts You can verify where the plugin throw exception. console.log are visibile in VsCode dev tool - Help > Toggle Developer Tools connectToJira is a good method to start. :+1:

ChrisKader commented 5 years ago

@magneticcore I noticed you said you are using a self hosted JIRA.

@gioboa does this plugin work with self-hosted solutions?

gioboa commented 5 years ago

Yes, It work correctly with environment hosted in self domain. e.g https://jira.xxx.com :+1:

gioboa commented 5 years ago

@magneticcore Did you find something? did you manage to debug the code?

SolalVall commented 5 years ago

Hi @gioboa ,

I face a similar error as @ChrisKader , when I run VSCode for the first time with Jira extension, I get this error message:

Error: Error: Check Jira Pugin settings in VSCode. Error: TypeError: Cannot read property 'status' of undefined

Here is the Jira extension configuration in my settings.json:

"jira-plugin.strictSSL": "false"

After I configure my base_url/credentials for the Jira Extension, the error goes away. But it would be great to avoid this error when you haven't set up your credentials yet.

Thanks

gioboa commented 5 years ago

Yes, you are right, if the plugin is not configured yet I will hide the error.

gioboa commented 5 years ago

@magneticcore I looked in the code and the error Error: Check Jira Plugin settings in VSCode appear only when credentials are wrong. Did you try to setup credentials from zero?

gioboa commented 5 years ago

@magneticcore Do you have some news?