mirror of
https://github.com/sagidayan/greasemonkey-scripts.git
synced 2024-11-22 09:25:26 +00:00
Added links in Epics
This commit is contained in:
parent
c021fcfa11
commit
e157cd3af7
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue