Skip to content

Commit

Permalink
fix(jira): Fix project ojn single page task (#2305)
Browse files Browse the repository at this point in the history
  • Loading branch information
with-shrey committed Jun 7, 2024
1 parent 9a4e80d commit c2d55e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules/
.idea/
3 changes: 1 addition & 2 deletions src/content/atlassian.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@ function getProject () {
}
}

projectElement = $('[data-test-id="issue.views.issue-base.foundation.breadcrumbs.breadcrumb-current-issue-container"]');

projectElement = $('[data-test-id="issue.views.issue-base.foundation.breadcrumbs.breadcrumb-current-issue-container"]') || $('[data-testid="issue.views.issue-base.foundation.breadcrumbs.project.container"]')
if (projectElement) {
const projectWrapper = projectElement.parentElement.querySelector('a[href*="browse"] span + span');
return projectWrapper ? projectWrapper.textContent.trim() : '';
Expand Down

0 comments on commit c2d55e3

Please sign in to comment.