Skip to content

Commit

Permalink
Fixes #2246 - ClickUp integration the task ID is detected incorrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
andresgz authored Oct 9, 2023
1 parent 6714965 commit d3b7947
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/content/clickup.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ togglbutton.render('#timeTrackingItem:not(.toggl)', { observe: true }, function
) {

const description = document.querySelector('title').textContent.split('|')[0];
const taskID = document.querySelector('div[role="dialog"]').getAttribute('data-task-id');
const taskID = document.querySelector('title').textContent.split('|')[1];

const project = elem.querySelector('.space-name').textContent;

const link = togglbutton.createTimerLink({
className: 'clickup',
description: `${description} - #${taskID}`,
description: `${description}-#${taskID}`,
projectName: project,
buttonType: 'minimal'
});
Expand Down

0 comments on commit d3b7947

Please sign in to comment.