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(/Orders.*/); | |
var holding_list = created.board().list("Waiting ... "); | |
created.board().list("Transporters").cards().each(function(card) | |
{ | |
Card.create(holding_list,"RFQ Order #"+created.id()).postComment( | |
//include whatever info from the order card here, just putting description as an example | |
//which might have all the form field submissions | |
"@to "+card.name()+" "+card.description+"\n"+created.description() | |
); |
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).convertedChecklistItemToCard(); | |
//Set the created card due to the date of the linked item in the source checklist | |
created.setDue( | |
conv.source.item(conv.link()).due() | |
); |
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
console.log( | |
Card.create( | |
new Trellinator().boards().first().lists().first(), | |
"Hi there" | |
) | |
.addChecklist("My Checklist",function(cl) | |
{ | |
cl.addItem("one"); | |
cl.addItem("two"); | |
cl.addItem("three"); |
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 checked = new Notification(notification).completedChecklistItem(); | |
var next = checked.checklist().itemAfter(checked); | |
checked.checklist().card().setCustomFieldValue("Next Action",next.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 Notification(notification).addedLabel("Remove All Attachments").card().attachments().each(function(att) | |
{ | |
att.remove(); | |
}); |
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 card = new Notification(notification).addedDueDate(); | |
copied.checklists().first().items().each(function(item) | |
{ | |
var diff = item.due().getTime() - card.previouslyDue().getTime(); | |
item.setDue(new Date(card.due()).addSeconds(diff)); | |
}); |
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
//When a card is moved to the Doing list | |
var moved = new Notification(notification).movedCard(/Doing.*/i); | |
moved.addMember(new Member({username: ___persistence.get("Support Co-ordinator")})); |
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).this.convertedChecklistItemToCard(); | |
created.setName( | |
created.source.card().name()+" "+created.name() | |
); | |
create.source.card().labels().each(function(label) | |
{ | |
created.addLabel(label.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 arched = new Notification(notification).archivedCard(); | |
if(arched.currentList().name() == "Doing") | |
arched.board().list("My Tasks").cards().random().moveTo("Doing","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
new Trellinator().board("My Tasks").list("To Do").cards().random().moveTo("Doing","top"); | |
___queue.put( | |
"randomlySelectTasks",//the action to run | |
{},//optional parameters passed into the next execution | |
Trellinator.now().addDays(1).at("7:00")//the time to run next | |
); |