extempl / youtrack-support-for-harvest-extension

YouTrack support for Harvest Time Tracker extension
https://chrome.google.com/webstore/detail/youtrack-support-for-harv/fokacpffkmckblabfebdeadojcffbfhl
MIT License
5 stars 3 forks source link

Synchronisation doesn't work (support for new API) #7

Open ikorgik opened 3 years ago

ikorgik commented 3 years ago

Hi and thanks for this amazing extension.

It seems the synchronisation doesn't work anymore since the JetBrains stopped the support of legacy API https://blog.jetbrains.com/youtrack/2021/02/discontinuing-the-legacy-rest-api-action-required/ They asked to migrate all custom code to the new REST API before July 2021.

I installed the extension today, but I see "Unreachable URL" error on the options page when I put the server URL in "Youtrack server URL" field and save the form.

I also see legacy API requests warning on the built-in API traffic monitor page https://www.jetbrains.com/help/youtrack/incloud/2021.2/monitor-rest-api-traffic.html image

Do you have any plans to move the extension to the new API? Potentially it can be a quick fix and just require change /rest to /api prefix, as they've mentioned in warning on https://www.jetbrains.com/help/youtrack/devportal/rest-api-reference.html page

ikorgik commented 3 years ago

Added draft implementation, it still requires some work, but it works locally if you add your token in chrome-extension/js/modules/api.js:5 https://github.com/extempl/youtrack-support-for-harvest-extension/pull/8