Skip to content

Commit

Permalink
TMET-9469. Fixed wrike integration, removed task\project check
Browse files Browse the repository at this point in the history
  • Loading branch information
DViktorF committed Oct 18, 2023
1 parent daeb381 commit 67cbadd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/in-page-scripts/integrations/wrike.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@ class Wrike implements WebToolIntegration {
getIssue(issueElement: HTMLElement, source: Source): WebToolIssue {
const issueNameElement = $$.try('wrike-task-title, work-item-title', issueElement); // new design
let issueName = $$.try<HTMLTextAreaElement>('textarea.title-field, textarea.title__field', issueElement).value || issueNameElement.textContent;
let attr = $$.try('work-item-type', issueElement)?.querySelector('svg[aria-label]')?.getAttribute('aria-label');
if (!attr || !/task/i.test(attr)) {
issueName = "";
}

if (!issueName) {
return;
}
Expand Down

0 comments on commit 67cbadd

Please sign in to comment.