Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iaindooley/3de63f494b3cdeda6583c5910f720d8a to your computer and use it in GitHub Desktop.
Save iaindooley/3de63f494b3cdeda6583c5910f720d8a to your computer and use it in GitHub Desktop.
Add me to no member and overdue cards
function addMeToNoMemberAndOverdueCards(params,signature,original_time)
{
var me = new Member({username: "myusername"});
var all_boards = new Trellinator().boards();
Trellinator.searchCardsInBoards(all_boards,"-has:members is:open").each(function(card)
{
card.addMember(me);
});
Trellinator.searchCardsInBoards(all_boards,"@me is:open due:overdue").each(function(card)
{
card.postComment("@myusername hey yo this is overdue");
});
ExecutionQueue.push("addMeToNoMemberAndOverdueCards",params,signature,original_time.addDays(1).at("7:00"));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment