This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var added = new Notification(notification).addedLabel("Everyone"); | |
added.card().board().members().each(function(member) | |
{ | |
added.card().addMember(member); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new Trellinator().board("My Board").list("My List").cards().each(function(card) | |
{ | |
console.log(card.name()+" ("+card.link()+"):") | |
card.checklists().each(function(cl) | |
{ | |
console.log(" "+cl.name()+":"); | |
cl.items().each(function(item) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Card.findOrCreate( | |
new Trellinator().board("My Board").findOrCreateList("Today 🎯") | |
"Daily/Weekly/Monthly Recurring Tasks" | |
) | |
.checklist("Daily").items().each(function(item) | |
{ | |
item.markIncomplete(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var added = new Notification(notification).addedCard(); | |
try | |
{ | |
added.setDue( | |
Trellinator | |
.now() | |
.addHours(10) | |
.minusDays(1) | |
.next(added.currentList().name()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var added = new Notification(notification).addedLabel(); | |
added.card().labels().each(function(label) | |
{ | |
if(label.id() != added.id()) | |
{ | |
added.card().removeLabel(added.name()); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new Trellinator().team("Workspace Name").members().each(function(member) | |
{ | |
console.log(member.name()); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var created = new Notification(notification).createdCard(/Origin List.*/i); | |
created.board().lists().each(function(list) | |
{ | |
if(list.id() != created.currentList().id()) | |
{ | |
created.copyToList(list,"top"); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var comp = new Notification(notification).completedChecklistItem(); | |
comp.checklist().card().postComment( | |
"@"+comp.checklist().items().itemAfter(comp).member().name()+" You're up!" | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var new_workspace = new Trellinator().team("New Workspace"); | |
new Trellinator().team("Old Workspace").members().each(function(member) | |
{ | |
//new_workspace.addMember(member,"admin");//must be admins in a free team anyway, upgrade to BC to remove admins | |
console.log(member.name()); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var target = new Trellinator().board("Archive Board"); | |
TrelloApi.searchCardsInBoards( | |
new Trellinator().board("From Board"), | |
"is:archived" | |
//comment out the below line to run for more than one card | |
,1 | |
).each(function(card) | |
{ | |
card |