Added links in Epics

This commit is contained in:
Sagi Dayan 2021-07-04 13:41:04 +03:00
parent c021fcfa11
commit e157cd3af7
Signed by: sagi
GPG key ID: FAB96BFC63B46458

View file

@ -9,7 +9,7 @@
// Constants // Constants
const LOG_TAG = '[BZ-LINKER]'; const LOG_TAG = '[BZ-LINKER]';
const summaryRegExp = new RegExp(/>\[([0-9]+)\]/); const summaryRegExp = new RegExp(/\[([0-9]+)\]/);
// Entry point - observe DOM changes - and search for unlinked jira tickets // Entry point - observe DOM changes - and search for unlinked jira tickets
var observer = new MutationObserver(update); var observer = new MutationObserver(update);
@ -49,7 +49,8 @@ function filterAndInflate(rows) {
if (r.tagName === 'TR' && !r.touched) { if (r.tagName === 'TR' && !r.touched) {
const summary = [...r.children].reduce((prev, child) => { const summary = [...r.children].reduce((prev, child) => {
if (prev) return prev; if (prev) return prev;
if (child.getAttribute('data-field-id') === 'summary' || child.className === 'summary') { if (child.getAttribute('data-field-id') === 'summary'
|| child.className.indexOf('summary') != -1) {
r.summaryElm = child; r.summaryElm = child;
return child.innerHTML; return child.innerHTML;
} }