Skip to content

Commit 11e51c8

Browse files
committed
fix(jira): Fix project ojn single page task
1 parent 0f14456 commit 11e51c8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
node_modules/
2+
.idea/

src/content/atlassian.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ const getDescription = (issueNumberElement) => () => {
103103
};
104104

105105
function getProject () {
106+
console.log('getProject')
106107
const project = '';
107108
let projectElement;
108109

@@ -126,8 +127,8 @@ function getProject () {
126127
}
127128
}
128129

129-
projectElement = $('[data-test-id="issue.views.issue-base.foundation.breadcrumbs.breadcrumb-current-issue-container"]');
130-
130+
projectElement = $('[data-test-id="issue.views.issue-base.foundation.breadcrumbs.breadcrumb-current-issue-container"]') || $('[data-testid="issue.views.issue-base.foundation.breadcrumbs.project.container"]')
131+
console.log({ projectElement })
131132
if (projectElement) {
132133
const projectWrapper = projectElement.parentElement.querySelector('a[href*="browse"] span + span');
133134
return projectWrapper ? projectWrapper.textContent.trim() : '';

0 commit comments

Comments
 (0)