clockify / browser-extension

Clockify Browser Extension
https://clockify.me/chrome-time-tracking
BSD 3-Clause "New" or "Revised" License
182 stars 167 forks source link

Atlassian integration broken #108

Open rmausz82 opened 3 years ago

rmausz82 commented 3 years ago

In jira cloud there is no link to start timer any more in the ticket view.

JS-Console shows errors: VM179 atlassian.js:85 Uncaught TypeError: Cannot read property '1' of null at VM179 atlassian.js:85 at Object.renderTo (VM178 button.js:26) at MutationObserver. (VM178 button.js:16)

Error handling response: TypeError: Cannot read property 'length' of undefined at updateButtonState (chrome-extension://pmjeegjhjdlccodhacdgbgfagbpmccpe/integrations/button.js:227:54) at chrome-extension://pmjeegjhjdlccodhacdgbgfagbpmccpe/integrations/button.js:297:18

aleksandar-olic commented 3 years ago

We no longer officially maintain the Jira integration via the extension (the layout in Jira keeps changing constantly).

We recommend either:

rmausz82 commented 3 years ago

in Line 36: remove .css-vfoyut from the selector. https://github.com/clockify/browser-extension/blob/0c3a8f01d7b0bcb1bac116862cd86247e5ccc6b9/src/integrations/atlassian.js#L36

With this change it works for Modal screens in kanban boards. On the first time it won't, problable due to some other js-error in the "One issue fullscreen" section. After that it works fine.

dorfman2 commented 3 years ago

On either Firefox 79.0 or Chrome 84.0.4147.105 (Official Build) (64-bit), the start/stop button for the clockify-extension fails to render on Atlassian websites. I am running windows 10 latest. I have verified that the integrations are all on, and have attempted to reinstall the plugin on both browsers.

Please let me know what type of log files would be useful, and I'll provide upon request. I know this is marked as #wontfix, but I'm hoping a semi-proper bug report will help a developer.

Reproduce:

  1. Install Clockify-extension on either browser (clean install for Chrome in my case, Firefox is primary browser).
  2. Login to Clockify, either via extension or website.
  3. Navigate to www.atlassian.net/ and login.
  4. View that start/stop button is missing from Jira Tickets or other tasks.

Current behavior: The start/stop button integration fails to render on the front end.

Expected behavior: The start/stop button integration renders and is usable by an authenticated user on the front end.

I can however, force the Start timer to appear on JIRA.

Reproduce:

  1. Navigate to Jira ticket.
  2. Click open the Clockify Extension .
  3. Refresh the page.

2020-08-07_13-11-59

Snag_52d65e1

rmausz82 commented 3 years ago

@dorfman2 your problem is probably some javascript error like this

Uncaught TypeError: Cannot read property '1' of null at atlassian.js:44 at Object.renderTo (button.js:26) at MutationObserver. (button.js:16)

open the issue and hit F12 and check the ouput from console window. How does your url look like?

dorfman2 commented 3 years ago

Here's all my errors from the console.

Some cookies are misusing the recommended “sameSite“ attribute 105
Deprecation notice: Accessing Env through metalTypes will soon be deprecated. commons.cc7f22058997ec06dcac.8.js:1:202435
This page uses the non standard property “zoom”. Consider using calc() in the relevant property values, or using “transform” along with “transform-origin: 0 0”. ARC19-204:1044:26
DEPRECATED JS - Cookie has been deprecated since 5.8.0 and will be removed in a future release. Use cookie instead.   
 @https://d2st6ip65e1jfi.cloudfront.net/atl-vertigo--shard-jira-prod-us-13--3--jres.atlassian.net/s/d41d8cd98f00b204e9800998ecf8427e-CDN/-egccmf/b/24/84eb17e160bd240d3f8ed3595ae6cb1c/_/download/contextbatch/js/jira.heritage/batch.js?jag=true&locale=en-US:6170:356 batch.js:2964:173
DEPRECATED JS - Cookie has been deprecated since 5.8.0 and will be removed in a future release. Use cookie instead.   
 @https://d2st6ip65e1jfi.cloudfront.net/atl-vertigo--shard-jira-prod-us-13--3--jres.atlassian.net/s/d41d8cd98f00b204e9800998ecf8427e-CDN/-egccmf/b/24/84eb17e160bd240d3f8ed3595ae6cb1c/_/download/contextbatch/js/jira.heritage/batch.js?jag=true&locale=en-US:6674:324 batch.js:2964:173
DEPRECATED JS - Cookie has been deprecated since 5.8.0 and will be removed in a future release. Use cookie instead.   
 @https://d2st6ip65e1jfi.cloudfront.net/atl-vertigo--shard-jira-prod-us-13--3--jres.atlassian.net/s/d41d8cd98f00b204e9800998ecf8427e-CDN/-egccmf/b/24/84eb17e160bd240d3f8ed3595ae6cb1c/_/download/contextbatch/js/jira.heritage/batch.js?jag=true&locale=en-US:6711:408 batch.js:2964:173
DEPRECATED JS - Cookie has been deprecated since 5.8.0 and will be removed in a future release. Use cookie instead.   
 @https://d2st6ip65e1jfi.cloudfront.net/atl-vertigo--shard-jira-prod-us-13--3--jres.atlassian.net/s/d41d8cd98f00b204e9800998ecf8427e-CDN/-egccmf/b/24/84eb17e160bd240d3f8ed3595ae6cb1c/_/download/contextbatch/js/jira.heritage/batch.js?jag=true&locale=en-US:6753:491 batch.js:2964:173
DEPRECATED JS - Cookie has been deprecated since 5.8.0 and will be removed in a future release. Use cookie instead.   
 @https://d2st6ip65e1jfi.cloudfront.net/atl-vertigo--shard-jira-prod-us-13--3--jres.atlassian.net/s/d41d8cd98f00b204e9800998ecf8427e-CDN/-egccmf/b/24/84eb17e160bd240d3f8ed3595ae6cb1c/_/download/contextbatch/js/jira.heritage/batch.js?jag=true&locale=en-US:7105:459 batch.js:2964:173
DEPRECATED JS - Cookie has been deprecated since 5.8.0 and will be removed in a future release. Use cookie instead.   
 @https://d2st6ip65e1jfi.cloudfront.net/atl-vertigo--shard-jira-prod-us-13--3--jres.atlassian.net/s/d41d8cd98f00b204e9800998ecf8427e-CDN/-egccmf/b/24/84eb17e160bd240d3f8ed3595ae6cb1c/_/download/contextbatch/js/jira.heritage/batch.js?jag=true&locale=en-US:7111:178 batch.js:2964:173
Source map error: Error: request failed with status 404
Resource URL: https://d2st6ip65e1jfi.cloudfront.net/atl-vertigo--shard-jira-prod-us-13--3--jres.atlassian.net/s/d41d8cd98f00b204e9800998ecf8427e-CDN/-egccmf/b/24/84eb17e160bd240d3f8ed3595ae6cb1c/_/download/contextbatch/js/jira.heritage/batch.js?jag=true&locale=en-US
Source Map URL: init-min.js.map

Source map error: Error: request failed with status 404
Resource URL: https://d2st6ip65e1jfi.cloudfront.net/atl-vertigo--shard-jira-prod-us-13--3--jres.atlassian.net/s/d41d8cd98f00b204e9800998ecf8427e-CDN/-egccmf/b/24/84eb17e160bd240d3f8ed3595ae6cb1c/_/download/contextbatch/js/jira.heritage/batch.js?jag=true&locale=en-US
Source Map URL: init-min.js.map

WidthDetector will be deprecated, please use WidthObserver from @atlaskit/width-detector instead. async-navigation~atlaskit.2d5302c5db2c6450685d.8.js:1:356563
XHRPOSThttps://forumone.atlassian.net/gateway/api/engage-targeting/api/v2/user/d4f59294-c467-4af8-b4af-7df91cd546ba/messages/navV3-onboarding-spotlight-tour/start
[HTTP/2 409 Conflict 137ms]

asm.js type error: Disabled by debugger async-issue-app~vendor.e2fbdcb7ff2083b02cfe.8.js
asm.js type error: Disabled by debugger async-atlassian-navigation-search.63fe23ab4522fd8ccb3e.8.js
WidthDetector will be deprecated, please use WidthObserver from @atlaskit/width-detector instead. async-navigation~atlaskit.2d5302c5db2c6450685d.8.js:1:356563
WidthDetector will be deprecated, please use WidthObserver from @atlaskit/width-detector instead. async-navigation~atlaskit.2d5302c5db2c6450685d.8.js:1:356563
WidthDetector will be deprecated, please use WidthObserver from @atlaskit/width-detector instead. async-navigation~atlaskit.2d5302c5db2c6450685d.8.js:1:356563
WidthDetector will be deprecated, please use WidthObserver from @atlaskit/width-detector instead. async-navigation~atlaskit.2d5302c5db2c6450685d.8.js:1:356563
DEPRECATED JS - Dropdown constructor has been deprecated and will be removed in a future release. Use Dropdown2 instead.   
 @https://d2st6ip65e1jfi.cloudfront.net/atl-vertigo--shard-jira-prod-us-13--3--jres.atlassian.net/s/d41d8cd98f00b204e9800998ecf8427e-CDN/-egccmf/b/24/84eb17e160bd240d3f8ed3595ae6cb1c/_/download/contextbatch/js/jira.heritage/batch.js?jag=true&locale=en-US:6854:201 batch.js:2964:173
Request to access cookie or storage on “<URL>” was blocked because we are blocking all third-party storage access requests and content blocking is enabled. 16
This page uses the non standard property “zoom”. Consider using calc() in the relevant property values, or using “transform” along with “transform-origin: 0 0”. polling
DEPRECATED JS - Inline dialog constructor has been deprecated and will be removed in a future release. Use inline dialog 2 instead.   
 l@https://d2st6ip65e1jfi.cloudfront.net/atl-vertigo--shard-jira-prod-us-13--3--jres.atlassian.net/s/d41d8cd98f00b204e9800998ecf8427e-CDN/-egccmf/b/24/84eb17e160bd240d3f8ed3595ae6cb1c/_/download/contextbatch/js/jira.heritage/batch.js?jag=true&locale=en-US:6:2054 batch.js:2964:173
Failed to initialize LaunchDarkly with user null, and environment PRODUCTION. Using default flag values. instrument.js:110:45
WARN: 'triggerPrivacyPolicySafeEvent' has been deprecated batch.js:3151:190
WARN: 'triggerPrivacyPolicySafeEvent' has been deprecated 3 batch.js:3151:190
Loading failed for the <script> with source “https://assets.sr-cloud.connect.adaptavistlabs.com/public/js/analytics.b8974cd461ea8d562d5a.js”. polling:42:1
Loading failed for the <script> with source “https://static.hotjar.com/c/hotjar-1437521.js?sv=6”.