-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathscript.js
More file actions
17 lines (16 loc) · 756 Bytes
/
script.js
File metadata and controls
17 lines (16 loc) · 756 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function getOutput(columnName, linkText) {
var $list = $('.list .list-header-name:contains(' + columnName + ')').parent().parent();
var cards = $list.children('.list-cards').children('.list-card');
var prefix = 'https://trello.com';
var output = [];
for(var i = 0; i < cards.length; i++) {
var link = $(cards[i]).find('.list-card-title').attr('href');
var title = $(cards[i]).find('.list-card-title').text();
var span = $(cards[i]).find('.list-card-title span').text();
title = title.replace(span, '');
if (title != 'Sol Integration progress report' && title.indexOf("Where we think we'll get") < 0) {
output.push('- ' + title + ' ([' + linkText + '|' + prefix + link + '])');
}
}
return output.join('<br>');
}