You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lately ClickUp rolled out new interface and after that the task id is not captured correctly.
Instead of the task id the integration adds null.
Expected behaviour
The integration should capture task title and id from a page.
Steps to reproduce
Press the Toggl button.
Steps to reproduce the behaviour:
Switch to UI of ClickUp to version 3.0
Open any task in ClickUp and press the Toggle button
In the track edit popup you will see the task title and the #null next to the title
Other details or context
I checked the source code of the ClickUp integration and it looks like there is an issue there or at least the room for improvement.
In the previous commit the author takes the title tag and splits its content by a pipe "|".
Then it uses the [0] element as a track title but does nothing with the [1] element that contains the required task ID.
Instead of using the data we already have code tries to get another element that contains the task ID. And this fails in the latest version of ClickUp. Something like that:
const taskID = document.querySelector('title').textContent.split('|')[1];
As I remember, the title tag included task title and ID all the time, so it's safe to take info from it in all versions of ClickUp.
Unfortunately, I can't provide the fix because I can't enable Developer mode in the extension and test the changes.
The text was updated successfully, but these errors were encountered:
I have this issue too!
I used to enable developer mode and fix it when It failed but It's not working anymore!
I have to work with a very old version that still doesn't do it perfectly, but at least adds the code # code
instead of #null
What can we do? It's critical
andresgz
added a commit
to andresgz/track-extension
that referenced
this issue
Oct 9, 2023
Relevant integration (if any):
I'm using the integration with ClickUp on public domain https://app.clickup.com
🐛 Describe the bug
Lately ClickUp rolled out new interface and after that the task id is not captured correctly.
Instead of the task id the integration adds null.
Expected behaviour
The integration should capture task title and id from a page.
Steps to reproduce
Press the Toggl button.
Steps to reproduce the behaviour:
Other details or context
I checked the source code of the ClickUp integration and it looks like there is an issue there or at least the room for improvement.
In the previous commit the author takes the title tag and splits its content by a pipe "|".
Then it uses the [0] element as a track title but does nothing with the [1] element that contains the required task ID.
const description = document.querySelector('title').textContent.split('|')[0];
Instead of using the data we already have code tries to get another element that contains the task ID. And this fails in the latest version of ClickUp. Something like that:
const taskID = document.querySelector('title').textContent.split('|')[1];
As I remember, the title tag included task title and ID all the time, so it's safe to take info from it in all versions of ClickUp.
Unfortunately, I can't provide the fix because I can't enable Developer mode in the extension and test the changes.
The text was updated successfully, but these errors were encountered: